From 719b09b2aeda716a8d98bd236862a8cd91464509 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Feb 2024 10:54:56 -0800 Subject: [PATCH 1/7] Remove all prepend related code --- src/compiler/builder.ts | 30 +- src/compiler/diagnosticMessages.json | 24 - src/compiler/emitter.ts | 616 ++---------------- src/compiler/factory/emitHelpers.ts | 39 -- src/compiler/factory/nodeFactory.ts | 400 +----------- src/compiler/factory/nodeTests.ts | 19 - src/compiler/program.ts | 57 +- src/compiler/transformers/declarations.ts | 20 +- src/compiler/transformers/module/node.ts | 2 +- src/compiler/transformers/ts.ts | 7 - src/compiler/transformers/utilities.ts | 2 +- src/compiler/tsbuild.ts | 18 - src/compiler/tsbuildPublic.ts | 303 +++------ src/compiler/types.ts | 223 +------ src/compiler/utilities.ts | 19 - src/compiler/utilitiesPublic.ts | 20 - src/executeCommandLine/executeCommandLine.ts | 57 +- src/testRunner/unittests/customTransforms.ts | 2 +- src/testRunner/unittests/helpers/baseline.ts | 68 -- .../unittests/helpers/solutionBuilder.ts | 1 - src/testRunner/unittests/helpers/tscWatch.ts | 1 - src/testRunner/unittests/tsbuild/publicApi.ts | 1 - tests/baselines/reference/api/typescript.d.ts | 202 ++---- 23 files changed, 209 insertions(+), 1922 deletions(-) diff --git a/src/compiler/builder.ts b/src/compiler/builder.ts index 5fea9d51ba201..98a8b7ca81bcf 100644 --- a/src/compiler/builder.ts +++ b/src/compiler/builder.ts @@ -7,7 +7,6 @@ import { BuilderProgramHost, BuilderState, BuildInfo, - BundleBuildInfo, CancellationToken, CommandLineOption, compareStringsCaseSensitive, @@ -76,7 +75,6 @@ import { sameMap, SemanticDiagnosticsBuilderProgram, skipTypeChecking, - some, SourceFile, sourceFileMayBeEmitted, SourceMapEmitResult, @@ -171,11 +169,6 @@ export interface ReusableBuilderProgramState extends BuilderState { * Name of the file whose dts was the latest to change */ latestChangedDtsFile: string | undefined; - /** - * @deprecated - * Bundle information either from oldState or current one so it can be used to complete the information in buildInfo when emitting only js or dts files - */ - bundle?: BundleBuildInfo; } // dprint-ignore @@ -462,12 +455,6 @@ function createBuilderProgramState(newProgram: Program, oldState: Readonly !!ref.prepend)) state.programEmitPending = getBuilderFileEmit(compilerOptions); - } return state; } @@ -1070,7 +1057,7 @@ export function isProgramBundleEmitBuildInfo(info: ProgramBuildInfo): info is Pr /** * Gets the program information to be emitted in buildInfo so that we can use it to create new program */ -function getBuildInfo(state: BuilderProgramState, bundle: BundleBuildInfo | undefined): BuildInfo { +function getBuildInfo(state: BuilderProgramState): BuildInfo { const currentDirectory = Debug.checkDefined(state.program).getCurrentDirectory(); const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions)!, currentDirectory)); // Convert the file name to Path here if we set the fileName instead to optimize multiple d.ts file emits and having to compute Canonical path @@ -1102,15 +1089,7 @@ function getBuildInfo(state: BuilderProgramState, bundle: BundleBuildInfo | unde false : // Pending emit is same as deteremined by compilerOptions state.programEmitPending, // Actual value }; - // Complete the bundle information if we are doing partial emit (only js or only dts) - const { js, dts, commonSourceDirectory, sourceFiles } = bundle!; - state.bundle = bundle = { - commonSourceDirectory, - sourceFiles, - js: js || (!state.compilerOptions.emitDeclarationOnly ? state.bundle?.js : undefined), - dts: dts || (getEmitDeclarations(state.compilerOptions) ? state.bundle?.dts : undefined), - }; - return createBuildInfo(program, bundle); + return createBuildInfo(program); } let fileIdsList: (readonly ProgramBuildInfoFileId[])[] | undefined; @@ -1215,7 +1194,7 @@ function getBuildInfo(state: BuilderProgramState, bundle: BundleBuildInfo | unde emitSignatures, latestChangedDtsFile, }; - return createBuildInfo(program, bundle); + return createBuildInfo(program); function relativeToBuildInfoEnsuringAbsolutePath(path: string) { return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory)); @@ -1478,7 +1457,7 @@ export function createBuilderProgram(kind: BuilderProgramKind, { newProgram, hos } const state = createBuilderProgramState(newProgram, oldState); - newProgram.getBuildInfo = bundle => getBuildInfo(state, bundle); + newProgram.getBuildInfo = () => getBuildInfo(state); // To ensure that we arent storing any references to old program or new program without state newProgram = undefined!; // TODO: GH#18217 @@ -1854,7 +1833,6 @@ export function createBuilderProgramUsingProgramBuildInfo(buildInfo: BuildInfo, latestChangedDtsFile, outSignature: program.outSignature, programEmitPending: program.pendingEmit === undefined ? undefined : toProgramEmitPending(program.pendingEmit, program.options), - bundle: buildInfo.bundle, }; } else { diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index f3e66173766c2..c32805803e506 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -5472,14 +5472,6 @@ "category": "Error", "code": 6307 }, - "Cannot prepend project '{0}' because it does not have 'outFile' set": { - "category": "Error", - "code": 6308 - }, - "Output file '{0}' from project '{1}' does not exist": { - "category": "Error", - "code": 6309 - }, "Referenced project '{0}' may not disable emit.": { "category": "Error", "code": 6310 @@ -5560,26 +5552,10 @@ "category": "Message", "code": 6371 }, - "Project '{0}' is out of date because output of its dependency '{1}' has changed": { - "category": "Message", - "code": 6372 - }, - "Updating output of project '{0}'...": { - "category": "Message", - "code": 6373 - }, "A non-dry build would update timestamps for output of project '{0}'": { "category": "Message", "code": 6374 }, - "A non-dry build would update output of project '{0}'": { - "category": "Message", - "code": 6375 - }, - "Cannot update output of project '{0}' because there was error reading file '{1}'": { - "category": "Message", - "code": 6376 - }, "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'": { "category": "Error", "code": 6377 diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index f27f9e7247e74..c646ca0ccdc5e 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3,7 +3,6 @@ import { AccessorDeclaration, ArrayBindingPattern, ArrayLiteralExpression, - arrayToMap, ArrayTypeNode, ArrowFunction, AsExpression, @@ -19,11 +18,6 @@ import { BreakStatement, BuildInfo, Bundle, - BundleBuildInfo, - BundleFileInfo, - BundleFileSectionKind, - BundleFileTextLike, - BundleFileTextLikeKind, CallExpression, CallSignatureDeclaration, canHaveLocals, @@ -37,19 +31,16 @@ import { ClassDeclaration, ClassExpression, ClassStaticBlockDeclaration, - clone, combinePaths, CommaListExpression, CommentRange, compareEmitHelpers, comparePaths, Comparison, - CompilerHost, CompilerOptions, computeCommonSourceDirectoryOfFilenames, ComputedPropertyName, computeLineStarts, - computeSignature, ConditionalExpression, ConditionalTypeNode, ConstructorDeclaration, @@ -60,12 +51,8 @@ import { createBinaryExpressionTrampoline, createDiagnosticCollection, createGetCanonicalFileName, - createInputFilesWithFileTexts, - createMultiMap, - createPrependNodes, createSourceMapGenerator, createTextWriter, - CustomTransformers, Debug, DebuggerStatement, DeclarationName, @@ -88,7 +75,6 @@ import { EmitTextWriter, EmitTransformers, emptyArray, - ensurePathIsNonModuleName, ensureTrailingDirectorySeparator, EntityName, EnumDeclaration, @@ -144,7 +130,6 @@ import { getEmitFlags, getEmitHelpers, getEmitModuleKind, - getExternalHelpersModuleName, getExternalModuleName, getIdentifierTypeArguments, getInternalEmitFlags, @@ -180,7 +165,6 @@ import { getTextOfJsxNamespacedName, getTrailingCommentRanges, getTrailingSemicolonDeferringWriter, - getTransformers, getTypeNode, guessIndentation, HasLocals, @@ -209,9 +193,6 @@ import { isBinaryExpression, isBindingPattern, isBlock, - isBundle, - isBundleFileTextLike, - isDeclaration, isDeclarationFileName, isDecorator, isEmptyStatement, @@ -226,7 +207,6 @@ import { isImportAttributes, isIncrementalCompilation, isInJsonFile, - isInternalDeclaration, isJSDocLikeText, isJsonSourceFile, isJsxClosingElement, @@ -252,12 +232,8 @@ import { isTemplateLiteralKind, isTokenKind, isTypeParameterDeclaration, - isUnparsedNode, - isUnparsedPrepend, - isUnparsedSource, isVarAwaitUsing, isVarConst, - isVariableStatement, isVarUsing, JSDoc, JSDocAugmentsTag, @@ -312,7 +288,6 @@ import { LiteralTypeNode, makeIdentifierFromModuleName, MappedTypeNode, - maybeBind, memoize, MetaProperty, MethodDeclaration, @@ -348,7 +323,6 @@ import { ObjectLiteralExpression, OptionalTypeNode, outFile, - OutputFile, ParameterDeclaration, ParenthesizedExpression, ParenthesizedTypeNode, @@ -364,8 +338,6 @@ import { PrintHandlers, PrivateIdentifier, ProgramBuildInfo, - ProgramBundleEmitBuildInfo, - ProjectReference, PropertyAccessExpression, PropertyAssignment, PropertyDeclaration, @@ -379,17 +351,12 @@ import { removeFileExtension, resolvePath, RestTypeNode, - returnFalse, ReturnStatement, - returnUndefined, SatisfiesExpression, ScriptTarget, - setEachParent, setOriginalNode, - setParent, setTextRange, setTextRangePosEnd, - setTextRangePosWidth, ShorthandPropertyAssignment, SignatureDeclaration, singleOrUndefined, @@ -399,8 +366,6 @@ import { SnippetKind, some, SourceFile, - SourceFilePrologueDirective, - SourceFilePrologueInfo, SourceMapEmitResult, SourceMapGenerator, SourceMapSource, @@ -430,7 +395,6 @@ import { TransformationResult, transformNodes, tryCast, - tryParseRawSourceMap, TryStatement, TupleTypeNode, TypeAliasDeclaration, @@ -444,12 +408,6 @@ import { TypeQueryNode, TypeReferenceNode, UnionTypeNode, - UnparsedNode, - UnparsedPrepend, - UnparsedPrologue, - UnparsedSource, - UnparsedSyntheticReference, - UnparsedTextLike, VariableDeclaration, VariableDeclarationList, VariableStatement, @@ -459,7 +417,6 @@ import { WithStatement, writeCommentRange, writeFile, - WriteFileCallbackData, YieldExpression, } from "./_namespaces/ts"; import * as performance from "./_namespaces/ts.performance"; @@ -493,9 +450,8 @@ export function forEachEmittedFile( const sourceFiles = isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile, forceDtsEmit); const options = host.getCompilerOptions(); if (outFile(options)) { - const prepends = host.getPrependNodes(); - if (sourceFiles.length || prepends.length) { - const bundle = factory.createBundle(sourceFiles, prepends); + if (sourceFiles.length) { + const bundle = factory.createBundle(sourceFiles); const result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle); if (result) { return result; @@ -772,7 +728,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi var newLine = getNewLineCharacter(compilerOptions); var writer = createTextWriter(newLine); var { enter, exit } = performance.createTimer("printTime", "beforePrint", "afterPrint"); - var bundleBuildInfo: BundleBuildInfo | undefined; var emitSkipped = false; /* eslint-enable no-var */ @@ -796,39 +751,27 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi }; function emitSourceFileOrBundle({ jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath }: EmitFileNames, sourceFileOrBundle: SourceFile | Bundle | undefined) { - let buildInfoDirectory: string | undefined; - if (buildInfoPath && sourceFileOrBundle && isBundle(sourceFileOrBundle)) { - buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory())); - bundleBuildInfo = { - commonSourceDirectory: relativeToBuildInfo(host.getCommonSourceDirectory()), - sourceFiles: sourceFileOrBundle.sourceFiles.map(file => relativeToBuildInfo(getNormalizedAbsolutePath(file.fileName, host.getCurrentDirectory()))), - }; - } tracing?.push(tracing.Phase.Emit, "emitJsFileOrBundle", { jsFilePath }); - emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath, relativeToBuildInfo); + emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath); tracing?.pop(); tracing?.push(tracing.Phase.Emit, "emitDeclarationFileOrBundle", { declarationFilePath }); - emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath, relativeToBuildInfo); + emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath); tracing?.pop(); tracing?.push(tracing.Phase.Emit, "emitBuildInfo", { buildInfoPath }); - emitBuildInfo(bundleBuildInfo, buildInfoPath); + emitBuildInfo(buildInfoPath); tracing?.pop(); - - function relativeToBuildInfo(path: string) { - return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory!, path, host.getCanonicalFileName)); - } } - function emitBuildInfo(bundle: BundleBuildInfo | undefined, buildInfoPath: string | undefined) { + function emitBuildInfo(buildInfoPath: string | undefined) { // Write build information if applicable if (!buildInfoPath || targetSourceFile || emitSkipped) return; if (host.isEmitBlocked(buildInfoPath)) { emitSkipped = true; return; } - const buildInfo = host.getBuildInfo(bundle) || createBuildInfo(/*program*/ undefined, bundle); + const buildInfo = host.getBuildInfo() || createBuildInfo(/*program*/ undefined); // Pass buildinfo as additional data to avoid having to reparse writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText(buildInfo), /*writeByteOrderMark*/ false, /*sourceFiles*/ undefined, { buildInfo }); emittedFilesList?.push(buildInfoPath); @@ -838,7 +781,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi sourceFileOrBundle: SourceFile | Bundle | undefined, jsFilePath: string | undefined, sourceMapFilePath: string | undefined, - relativeToBuildInfo: (path: string) => string, ) { if (!sourceFileOrBundle || emitOnly || !jsFilePath) { return; @@ -862,8 +804,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi inlineSourceMap: compilerOptions.inlineSourceMap, inlineSources: compilerOptions.inlineSources, extendedDiagnostics: compilerOptions.extendedDiagnostics, - writeBundleFileInfo: !!bundleBuildInfo, - relativeToBuildInfo, }; // Create a printer to print the nodes @@ -882,7 +822,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi // Clean up emit nodes on parse tree transform.dispose(); - if (bundleBuildInfo) bundleBuildInfo.js = printer.bundleFileInfo; if (emittedFilesList) { emittedFilesList.push(jsFilePath); @@ -896,7 +835,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi sourceFileOrBundle: SourceFile | Bundle | undefined, declarationFilePath: string | undefined, declarationMapPath: string | undefined, - relativeToBuildInfo: (path: string) => string, ) { if (!sourceFileOrBundle || emitOnly === EmitOnly.Js) return; if (!declarationFilePath) { @@ -906,7 +844,7 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles; const filesForEmit = forceDtsEmit ? sourceFiles : filter(sourceFiles, isSourceFileNotJson); // Setup and perform the transformation to retrieve declarations from the input files - const inputListOrBundle = outFile(compilerOptions) ? [factory.createBundle(filesForEmit, !isSourceFile(sourceFileOrBundle) ? sourceFileOrBundle.prepends : undefined)] : filesForEmit; + const inputListOrBundle = outFile(compilerOptions) ? [factory.createBundle(filesForEmit)] : filesForEmit; if (emitOnly && !getEmitDeclarations(compilerOptions)) { // Checker wont collect the linked aliases since thats only done when declaration is enabled. // Do that here when emitting only dts files @@ -934,9 +872,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi extendedDiagnostics: compilerOptions.extendedDiagnostics, onlyPrintJsDocStyle: true, omitBraceSourceMapPositions: true, - writeBundleFileInfo: !!bundleBuildInfo, - recordInternalSection: !!bundleBuildInfo, - relativeToBuildInfo, }; const declarationPrinter = createPrinter(printerOptions, { @@ -967,7 +902,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi emittedFilesList.push(declarationMapPath); } } - if (bundleBuildInfo) bundleBuildInfo.dts = declarationPrinter.bundleFileInfo; } declarationTransform.dispose(); } @@ -1037,7 +971,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi if (sourceMapFilePath) { const sourceMap = sourceMapGenerator.toString(); writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, /*writeByteOrderMark*/ false, sourceFiles); - if (printer.bundleFileInfo) printer.bundleFileInfo.mapHash = computeSignature(sourceMap, host); } } else { @@ -1047,9 +980,6 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi // Write the output file const text = writer.getText(); writeFile(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, { sourceMapUrlPos, diagnostics: transform.diagnostics }); - // We store the hash of the text written in the buildinfo to ensure that text of the referenced d.ts file is same as whats in the buildinfo - // This is needed because incremental can be toggled between two runs and we might use stale file text to do text manipulation in prepend mode - if (printer.bundleFileInfo) printer.bundleFileInfo.hash = computeSignature(text, host); // Reset state writer.clear(); @@ -1132,8 +1062,8 @@ export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFi } /** @internal */ -export function createBuildInfo(program: ProgramBuildInfo | undefined, bundle: BundleBuildInfo | undefined): BuildInfo { - return { bundle, program, version }; +export function createBuildInfo(program: ProgramBuildInfo | undefined): BuildInfo { + return { program, version }; } /** @internal */ @@ -1193,176 +1123,6 @@ export const notImplementedResolver: EmitResolver = { tryFindAmbientModule: notImplemented, }; -/** - * File that isnt present resulting in error or output files - * - * @deprecated - * @internal - */ -export type EmitUsingBuildInfoResult = string | readonly OutputFile[]; - -function createSourceFilesFromBundleBuildInfo(bundle: BundleBuildInfo, buildInfoDirectory: string, host: CompilerHost): readonly SourceFile[] { - const jsBundle = Debug.checkDefined(bundle.js); - const prologueMap = jsBundle.sources?.prologues && arrayToMap(jsBundle.sources.prologues, prologueInfo => prologueInfo.file); - return bundle.sourceFiles.map((fileName, index) => { - const prologueInfo = prologueMap?.get(index); - const statements = prologueInfo?.directives.map(directive => { - const literal = setTextRange(factory.createStringLiteral(directive.expression.text), directive.expression); - const statement = setTextRange(factory.createExpressionStatement(literal), directive); - setParent(literal, statement); - return statement; - }); - const eofToken = factory.createToken(SyntaxKind.EndOfFileToken); - const sourceFile = factory.createSourceFile(statements ?? [], eofToken, NodeFlags.None); - sourceFile.fileName = getRelativePathFromDirectory( - host.getCurrentDirectory(), - getNormalizedAbsolutePath(fileName, buildInfoDirectory), - !host.useCaseSensitiveFileNames(), - ); - sourceFile.text = prologueInfo?.text ?? ""; - setTextRangePosWidth(sourceFile, 0, prologueInfo?.text.length ?? 0); - setEachParent(sourceFile.statements, sourceFile); - setTextRangePosWidth(eofToken, sourceFile.end, 0); - setParent(eofToken, sourceFile); - return sourceFile; - }); -} - -/** @deprecated @internal */ -export function emitUsingBuildInfo( - config: ParsedCommandLine, - host: CompilerHost, - getCommandLine: (ref: ProjectReference) => ParsedCommandLine | undefined, - customTransformers?: CustomTransformers, -): EmitUsingBuildInfoResult { - tracing?.push(tracing.Phase.Emit, "emitUsingBuildInfo", {}, /*separateBeginAndEnd*/ true); - performance.mark("beforeEmit"); - const result = emitUsingBuildInfoWorker(config, host, getCommandLine, customTransformers); - performance.mark("afterEmit"); - performance.measure("Emit", "beforeEmit", "afterEmit"); - tracing?.pop(); - return result; -} - -function emitUsingBuildInfoWorker( - config: ParsedCommandLine, - host: CompilerHost, - getCommandLine: (ref: ProjectReference) => ParsedCommandLine | undefined, - customTransformers?: CustomTransformers, -): EmitUsingBuildInfoResult { - const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle(config.options, /*forceDtsPaths*/ false); - // If host directly provides buildinfo we can get it directly. This allows host to cache the buildinfo - const buildInfo = host.getBuildInfo!(buildInfoPath!, config.options.configFilePath); - if (!buildInfo) return buildInfoPath!; - if (!buildInfo.bundle || !buildInfo.bundle.js || (declarationFilePath && !buildInfo.bundle.dts)) return buildInfoPath!; - - const jsFileText = host.readFile(Debug.checkDefined(jsFilePath)); - if (!jsFileText) return jsFilePath!; - // If the jsFileText is not same has what it was created with, tsbuildinfo is stale so dont use it - if (computeSignature(jsFileText, host) !== buildInfo.bundle.js.hash) return jsFilePath!; - const sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath); - // error if no source map or for now if inline sourcemap - if ((sourceMapFilePath && !sourceMapText) || config.options.inlineSourceMap) return sourceMapFilePath || "inline sourcemap decoding"; - if (sourceMapFilePath && computeSignature(sourceMapText!, host) !== buildInfo.bundle.js.mapHash) return sourceMapFilePath; - - // read declaration text - const declarationText = declarationFilePath && host.readFile(declarationFilePath); - if (declarationFilePath && !declarationText) return declarationFilePath; - if (declarationFilePath && computeSignature(declarationText!, host) !== buildInfo.bundle.dts!.hash) return declarationFilePath; - const declarationMapText = declarationMapPath && host.readFile(declarationMapPath); - // error if no source map or for now if inline sourcemap - if ((declarationMapPath && !declarationMapText) || config.options.inlineSourceMap) return declarationMapPath || "inline sourcemap decoding"; - if (declarationMapPath && computeSignature(declarationMapText!, host) !== buildInfo.bundle.dts!.mapHash) return declarationMapPath; - - const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath!, host.getCurrentDirectory())); - const ownPrependInput = createInputFilesWithFileTexts( - jsFilePath, - jsFileText, - sourceMapFilePath, - sourceMapText, - declarationFilePath, - declarationText!, - declarationMapPath, - declarationMapText, - buildInfoPath, - buildInfo, - /*oldFileOfCurrentEmit*/ true, - ); - const outputFiles: OutputFile[] = []; - const prependNodes = createPrependNodes(config.projectReferences, getCommandLine, f => host.readFile(f), host); - const sourceFilesForJsEmit = createSourceFilesFromBundleBuildInfo(buildInfo.bundle, buildInfoDirectory, host); - let changedDtsText: string | undefined; - let changedDtsData: WriteFileCallbackData | undefined; - const emitHost: EmitHost = { - getPrependNodes: memoize(() => [...prependNodes, ownPrependInput]), - getCanonicalFileName: host.getCanonicalFileName, - getCommonSourceDirectory: () => getNormalizedAbsolutePath(buildInfo.bundle!.commonSourceDirectory, buildInfoDirectory), - getCompilerOptions: () => config.options, - getCurrentDirectory: () => host.getCurrentDirectory(), - getSourceFile: returnUndefined, - getSourceFileByPath: returnUndefined, - getSourceFiles: () => sourceFilesForJsEmit, - getLibFileFromReference: notImplemented, - isSourceFileFromExternalLibrary: returnFalse, - getResolvedProjectReferenceToRedirect: returnUndefined, - getProjectReferenceRedirect: returnUndefined, - isSourceOfProjectReferenceRedirect: returnFalse, - writeFile: (name, text, writeByteOrderMark, _onError, _sourceFiles, data) => { - switch (name) { - case jsFilePath: - if (jsFileText === text) return; - break; - case sourceMapFilePath: - if (sourceMapText === text) return; - break; - case buildInfoPath: - break; - case declarationFilePath: - if (declarationText === text) return; - changedDtsText = text; - changedDtsData = data; - break; - case declarationMapPath: - if (declarationMapText === text) return; - break; - default: - Debug.fail(`Unexpected path: ${name}`); - } - outputFiles.push({ name, text, writeByteOrderMark, data }); - }, - isEmitBlocked: returnFalse, - readFile: f => host.readFile(f), - fileExists: f => host.fileExists(f), - useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), - getBuildInfo: bundle => { - const program = buildInfo.program; - if (program && changedDtsText !== undefined && config.options.composite) { - // Update the output signature - (program as ProgramBundleEmitBuildInfo).outSignature = computeSignature(changedDtsText, host, changedDtsData); - } - // Update sourceFileInfo - const { js, dts, sourceFiles } = buildInfo.bundle!; - bundle!.js!.sources = js!.sources; - if (dts) { - bundle!.dts!.sources = dts.sources; - } - bundle!.sourceFiles = sourceFiles; - return createBuildInfo(program, bundle); - }, - getSourceFileFromReference: returnUndefined, - redirectTargetsMap: createMultiMap(), - getFileIncludeReasons: notImplemented, - createHash: maybeBind(host, host.createHash), - }; - emitFiles( - notImplementedResolver, - emitHost, - /*targetSourceFile*/ undefined, - getTransformers(config.options, customTransformers), - ); - return outputFiles; -} - const enum PipelinePhase { Notification, Substitution, @@ -1428,11 +1188,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri var ownWriter: EmitTextWriter; // Reusable `EmitTextWriter` for basic printing. var write = writeBase; var isOwnFileEmit: boolean; - var bundleFileInfo = printerOptions.writeBundleFileInfo ? { sections: [] } as BundleFileInfo : undefined; - var relativeToBuildInfo = bundleFileInfo ? Debug.checkDefined(printerOptions.relativeToBuildInfo) : undefined; - var recordInternalSection = printerOptions.recordInternalSection; - var sourceFileTextPos = 0; - var sourceFileTextKind: BundleFileTextLikeKind = BundleFileSectionKind.Text; // Source Maps var sourceMapsDisabled = true; @@ -1473,7 +1228,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri writeList, writeFile, writeBundle, - bundleFileInfo, }; function printNode(hint: EmitHint, node: Node, sourceFile: SourceFile): string { @@ -1493,8 +1247,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri return printFile(node as SourceFile); case SyntaxKind.Bundle: return printBundle(node as Bundle); - case SyntaxKind.UnparsedSource: - return printUnparsedSource(node as UnparsedSource); } writeNode(hint, node, sourceFile, beginPrint()); return endPrint(); @@ -1515,11 +1267,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri return endPrint(); } - function printUnparsedSource(unparsed: UnparsedSource): string { - writeUnparsedSource(unparsed, beginPrint()); - return endPrint(); - } - /** * If `sourceFile` is `undefined`, `node` must be a synthesized `TypeNode`. */ @@ -1544,54 +1291,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri writer = previousWriter; } - function getTextPosWithWriteLine() { - return writer.getTextPosWithWriteLine ? writer.getTextPosWithWriteLine() : writer.getTextPos(); - } - - function updateOrPushBundleFileTextLike(pos: number, end: number, kind: BundleFileTextLikeKind) { - const last = lastOrUndefined(bundleFileInfo!.sections); - if (last && last.kind === kind) { - last.end = end; - } - else { - bundleFileInfo!.sections.push({ pos, end, kind }); - } - } - - function recordBundleFileInternalSectionStart(node: Node) { - if ( - recordInternalSection && - bundleFileInfo && - currentSourceFile && - (isDeclaration(node) || isVariableStatement(node)) && - isInternalDeclaration(node, currentSourceFile) && - sourceFileTextKind !== BundleFileSectionKind.Internal - ) { - const prevSourceFileTextKind = sourceFileTextKind; - recordBundleFileTextLikeSection(writer.getTextPos()); - sourceFileTextPos = getTextPosWithWriteLine(); - sourceFileTextKind = BundleFileSectionKind.Internal; - return prevSourceFileTextKind; - } - return undefined; - } - - function recordBundleFileInternalSectionEnd(prevSourceFileTextKind: ReturnType) { - if (prevSourceFileTextKind) { - recordBundleFileTextLikeSection(writer.getTextPos()); - sourceFileTextPos = getTextPosWithWriteLine(); - sourceFileTextKind = prevSourceFileTextKind; - } - } - - function recordBundleFileTextLikeSection(end: number) { - if (sourceFileTextPos < end) { - updateOrPushBundleFileTextLike(sourceFileTextPos, end, sourceFileTextKind); - return true; - } - return false; - } - function writeBundle(bundle: Bundle, output: EmitTextWriter, sourceMapGenerator: SourceMapGenerator | undefined) { isOwnFileEmit = false; const previousWriter = writer; @@ -1600,61 +1299,9 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri emitPrologueDirectivesIfNeeded(bundle); emitHelpers(bundle); emitSyntheticTripleSlashReferencesIfNeeded(bundle); - - for (const prepend of bundle.prepends) { - writeLine(); - const pos = writer.getTextPos(); - const savedSections = bundleFileInfo && bundleFileInfo.sections; - if (savedSections) bundleFileInfo!.sections = []; - print(EmitHint.Unspecified, prepend, /*sourceFile*/ undefined); - if (bundleFileInfo) { - const newSections = bundleFileInfo.sections; - bundleFileInfo.sections = savedSections!; - if (prepend.oldFileOfCurrentEmit) bundleFileInfo.sections.push(...newSections); - else { - newSections.forEach(section => Debug.assert(isBundleFileTextLike(section))); - bundleFileInfo.sections.push({ - pos, - end: writer.getTextPos(), - kind: BundleFileSectionKind.Prepend, - data: relativeToBuildInfo!((prepend as UnparsedSource).fileName), - texts: newSections as BundleFileTextLike[], - }); - } - } - } - - sourceFileTextPos = getTextPosWithWriteLine(); for (const sourceFile of bundle.sourceFiles) { print(EmitHint.SourceFile, sourceFile, sourceFile); } - if (bundleFileInfo && bundle.sourceFiles.length) { - const end = writer.getTextPos(); - if (recordBundleFileTextLikeSection(end)) { - // Store prologues - const prologues = getPrologueDirectivesFromBundledSourceFiles(bundle); - if (prologues) { - if (!bundleFileInfo.sources) bundleFileInfo.sources = {}; - bundleFileInfo.sources.prologues = prologues; - } - - // Store helpes - const helpers = getHelpersFromBundledSourceFiles(bundle); - if (helpers) { - if (!bundleFileInfo.sources) bundleFileInfo.sources = {}; - bundleFileInfo.sources.helpers = helpers; - } - } - } - - reset(); - writer = previousWriter; - } - - function writeUnparsedSource(unparsed: UnparsedSource, output: EmitTextWriter) { - const previousWriter = writer; - setWriter(output, /*_sourceMapGenerator*/ undefined); - print(EmitHint.Unspecified, unparsed, /*sourceFile*/ undefined); reset(); writer = previousWriter; } @@ -1736,9 +1383,7 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri function emit(node: T | undefined, parenthesizerRule?: (node: T) => T): void; function emit(node: T | undefined, parenthesizerRule?: (node: T) => T) { if (node === undefined) return; - const prevSourceFileTextKind = recordBundleFileInternalSectionStart(node); pipelineEmit(EmitHint.Unspecified, node, parenthesizerRule); - recordBundleFileInternalSectionEnd(prevSourceFileTextKind); } function emitIdentifierName(node: Identifier): void; @@ -1783,9 +1428,7 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri function shouldEmitSourceMaps(node: Node) { return !sourceMapsDisabled && !isSourceFile(node) && - !isInJsonFile(node) && - !isUnparsedSource(node) && - !isUnparsedPrepend(node); + !isInJsonFile(node); } function getPipelinePhase(phase: PipelinePhase, emitHint: EmitHint, node: Node) { @@ -2118,26 +1761,11 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri case SyntaxKind.EnumMember: return emitEnumMember(node as EnumMember); - // Unparsed - case SyntaxKind.UnparsedPrologue: - return writeUnparsedNode(node as UnparsedNode); - case SyntaxKind.UnparsedSource: - case SyntaxKind.UnparsedPrepend: - return emitUnparsedSourceOrPrepend(node as UnparsedSource); - case SyntaxKind.UnparsedText: - case SyntaxKind.UnparsedInternalText: - return emitUnparsedTextLike(node as UnparsedTextLike); - case SyntaxKind.UnparsedSyntheticReference: - return emitUnparsedSyntheticReference(node as UnparsedSyntheticReference); - // Top-level nodes case SyntaxKind.SourceFile: return emitSourceFile(node as SourceFile); case SyntaxKind.Bundle: return Debug.fail("Bundles should be printed using printBundle"); - // SyntaxKind.UnparsedSource (handled above) - case SyntaxKind.InputFiles: - return Debug.fail("InputFiles should not be printed"); // JSDoc nodes (only used in codefixes currently) case SyntaxKind.JSDocTypeExpression: @@ -2349,41 +1977,19 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri pipelinePhase(hint, node); } - function getHelpersFromBundledSourceFiles(bundle: Bundle): string[] | undefined { - let result: string[] | undefined; - if (moduleKind === ModuleKind.None || printerOptions.noEmitHelpers) { - return undefined; - } - const bundledHelpers = new Map(); - for (const sourceFile of bundle.sourceFiles) { - const shouldSkip = getExternalHelpersModuleName(sourceFile) !== undefined; - const helpers = getSortedEmitHelpers(sourceFile); - if (!helpers) continue; - for (const helper of helpers) { - if (!helper.scoped && !shouldSkip && !bundledHelpers.get(helper.name)) { - bundledHelpers.set(helper.name, true); - (result || (result = [])).push(helper.name); - } - } - } - - return result; - } - function emitHelpers(node: Node) { let helpersEmitted = false; const bundle = node.kind === SyntaxKind.Bundle ? node as Bundle : undefined; if (bundle && moduleKind === ModuleKind.None) { return; } - const numPrepends = bundle ? bundle.prepends.length : 0; - const numNodes = bundle ? bundle.sourceFiles.length + numPrepends : 1; + const numNodes = bundle ? bundle.sourceFiles.length : 1; for (let i = 0; i < numNodes; i++) { - const currentNode = bundle ? i < numPrepends ? bundle.prepends[i] : bundle.sourceFiles[i - numPrepends] : node; - const sourceFile = isSourceFile(currentNode) ? currentNode : isUnparsedSource(currentNode) ? undefined : currentSourceFile; + const currentNode = bundle ? bundle.sourceFiles[i] : node; + const sourceFile = isSourceFile(currentNode) ? currentNode : currentSourceFile; const shouldSkip = printerOptions.noEmitHelpers || (!!sourceFile && hasRecordedExternalHelpers(sourceFile)); - const shouldBundle = (isSourceFile(currentNode) || isUnparsedSource(currentNode)) && !isOwnFileEmit; - const helpers = isUnparsedSource(currentNode) ? currentNode.helpers : getSortedEmitHelpers(currentNode); + const shouldBundle = isSourceFile(currentNode) && !isOwnFileEmit; + const helpers = getSortedEmitHelpers(currentNode); if (helpers) { for (const helper of helpers) { if (!helper.scoped) { @@ -2406,14 +2012,12 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri // Skip the helper if it is scoped and we are emitting bundled helpers continue; } - const pos = getTextPosWithWriteLine(); if (typeof helper.text === "string") { writeLines(helper.text); } else { writeLines(helper.text(makeFileLevelOptimisticUniqueName)); } - if (bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.EmitHelpers, data: helper.name }); helpersEmitted = true; } } @@ -2457,51 +2061,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri } } - // SyntaxKind.UnparsedSource - // SyntaxKind.UnparsedPrepend - function emitUnparsedSourceOrPrepend(unparsed: UnparsedSource | UnparsedPrepend) { - for (const text of unparsed.texts) { - writeLine(); - emit(text); - } - } - - // SyntaxKind.UnparsedPrologue - // SyntaxKind.UnparsedText - // SyntaxKind.UnparsedInternal - // SyntaxKind.UnparsedSyntheticReference - function writeUnparsedNode(unparsed: UnparsedNode) { - writer.rawWrite(unparsed.parent.text.substring(unparsed.pos, unparsed.end)); - } - - // SyntaxKind.UnparsedText - // SyntaxKind.UnparsedInternal - function emitUnparsedTextLike(unparsed: UnparsedTextLike) { - const pos = getTextPosWithWriteLine(); - writeUnparsedNode(unparsed); - if (bundleFileInfo) { - updateOrPushBundleFileTextLike( - pos, - writer.getTextPos(), - unparsed.kind === SyntaxKind.UnparsedText ? - BundleFileSectionKind.Text : - BundleFileSectionKind.Internal, - ); - } - } - - // SyntaxKind.UnparsedSyntheticReference - function emitUnparsedSyntheticReference(unparsed: UnparsedSyntheticReference) { - const pos = getTextPosWithWriteLine(); - writeUnparsedNode(unparsed); - if (bundleFileInfo) { - const section = clone(unparsed.section); - section.pos = pos; - section.end = writer.getTextPos(); - bundleFileInfo.sections.push(section); - } - } - // // Snippet Elements // @@ -4601,14 +4160,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri function emitSyntheticTripleSlashReferencesIfNeeded(node: Bundle) { emitTripleSlashDirectives(!!node.hasNoDefaultLib, node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []); - for (const prepend of node.prepends) { - if (isUnparsedSource(prepend) && prepend.syntheticReferences) { - for (const ref of prepend.syntheticReferences) { - emit(ref); - writeLine(); - } - } - } } function emitTripleSlashDirectivesIfNeeded(node: SourceFile) { @@ -4617,9 +4168,7 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri function emitTripleSlashDirectives(hasNoDefaultLib: boolean, files: readonly FileReference[], types: readonly FileReference[], libs: readonly FileReference[]) { if (hasNoDefaultLib) { - const pos = writer.getTextPos(); writeComment(`/// `); - if (bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.NoDefaultLib }); writeLine(); } if (currentSourceFile && currentSourceFile.moduleName) { @@ -4638,24 +4187,18 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri } } for (const directive of files) { - const pos = writer.getTextPos(); writeComment(`/// `); - if (bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.Reference, data: directive.fileName }); writeLine(); } for (const directive of types) { - const pos = writer.getTextPos(); const resolutionMode = directive.resolutionMode && directive.resolutionMode !== currentSourceFile?.impliedNodeFormat ? `resolution-mode="${directive.resolutionMode === ModuleKind.ESNext ? "import" : "require"}"` : ""; writeComment(`/// `); - if (bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: !directive.resolutionMode ? BundleFileSectionKind.Type : directive.resolutionMode === ModuleKind.ESNext ? BundleFileSectionKind.TypeResolutionModeImport : BundleFileSectionKind.TypeResolutionModeRequire, data: directive.fileName }); writeLine(); } for (const directive of libs) { - const pos = writer.getTextPos(); writeComment(`/// `); - if (bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.Lib, data: directive.fileName }); writeLine(); } } @@ -4692,7 +4235,7 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri * Emits any prologue directives at the start of a Statement list, returning the * number of prologue directives written to the output. */ - function emitPrologueDirectives(statements: readonly Node[], sourceFile?: SourceFile, seenPrologueDirectives?: Set, recordBundleFileSection?: true): number { + function emitPrologueDirectives(statements: readonly Node[], sourceFile?: SourceFile, seenPrologueDirectives?: Set): number { let needsToSetSourceFile = !!sourceFile; for (let i = 0; i < statements.length; i++) { const statement = statements[i]; @@ -4704,9 +4247,7 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri setSourceFile(sourceFile); } writeLine(); - const pos = writer.getTextPos(); emit(statement); - if (recordBundleFileSection && bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.Prologue, data: statement.expression.text }); if (seenPrologueDirectives) { seenPrologueDirectives.add(statement.expression.text); } @@ -4721,65 +4262,21 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri return statements.length; } - function emitUnparsedPrologues(prologues: readonly UnparsedPrologue[], seenPrologueDirectives: Set) { - for (const prologue of prologues) { - if (!seenPrologueDirectives.has(prologue.data)) { - writeLine(); - const pos = writer.getTextPos(); - emit(prologue); - if (bundleFileInfo) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.Prologue, data: prologue.data }); - if (seenPrologueDirectives) { - seenPrologueDirectives.add(prologue.data); - } - } - } - } - function emitPrologueDirectivesIfNeeded(sourceFileOrBundle: Bundle | SourceFile) { if (isSourceFile(sourceFileOrBundle)) { emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle); } else { const seenPrologueDirectives = new Set(); - for (const prepend of sourceFileOrBundle.prepends) { - emitUnparsedPrologues((prepend as UnparsedSource).prologues, seenPrologueDirectives); - } for (const sourceFile of sourceFileOrBundle.sourceFiles) { - emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives, /*recordBundleFileSection*/ true); + emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives); } setSourceFile(undefined); } } - function getPrologueDirectivesFromBundledSourceFiles(bundle: Bundle): SourceFilePrologueInfo[] | undefined { - const seenPrologueDirectives = new Set(); - let prologues: SourceFilePrologueInfo[] | undefined; - for (let index = 0; index < bundle.sourceFiles.length; index++) { - const sourceFile = bundle.sourceFiles[index]; - let directives: SourceFilePrologueDirective[] | undefined; - let end = 0; - for (const statement of sourceFile.statements) { - if (!isPrologueDirective(statement)) break; - if (seenPrologueDirectives.has(statement.expression.text)) continue; - seenPrologueDirectives.add(statement.expression.text); - (directives || (directives = [])).push({ - pos: statement.pos, - end: statement.end, - expression: { - pos: statement.expression.pos, - end: statement.expression.end, - text: statement.expression.text, - }, - }); - end = end < statement.end ? statement.end : end; - } - if (directives) (prologues || (prologues = [])).push({ file: index, text: sourceFile.text.substring(0, end), directives }); - } - return prologues; - } - - function emitShebangIfNeeded(sourceFileOrBundle: Bundle | SourceFile | UnparsedSource) { - if (isSourceFile(sourceFileOrBundle) || isUnparsedSource(sourceFileOrBundle)) { + function emitShebangIfNeeded(sourceFileOrBundle: Bundle | SourceFile) { + if (isSourceFile(sourceFileOrBundle)) { const shebang = getShebang(sourceFileOrBundle.text); if (shebang) { writeComment(shebang); @@ -4788,12 +4285,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri } } else { - for (const prepend of sourceFileOrBundle.prepends) { - Debug.assertNode(prepend, isUnparsedSource); - if (emitShebangIfNeeded(prepend)) { - return true; - } - } for (const sourceFile of sourceFileOrBundle.sourceFiles) { // Emit only the first encountered shebang if (emitShebangIfNeeded(sourceFile)) { @@ -5118,7 +4609,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri // Emit each child. let previousSibling: Node | undefined; - let previousSourceFileTextKind: ReturnType; let shouldDecreaseIndentAfterEmit = false; for (let i = 0; i < count; i++) { const child = children[start + i]; @@ -5144,7 +4634,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri } writeDelimiter(format); - recordBundleFileInternalSectionEnd(previousSourceFileTextKind); // Write either a line terminator or whitespace to separate the elements. const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format); @@ -5170,7 +4659,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri } // Emit this child. - previousSourceFileTextKind = recordBundleFileInternalSectionStart(child); if (shouldEmitInterveningComments) { const commentRange = getCommentRange(child); emitTrailingCommentsOfPosition(commentRange.pos); @@ -5218,8 +4706,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri decreaseIndent(); } - recordBundleFileInternalSectionEnd(previousSourceFileTextKind); - // Write the closing line terminator or closing whitespace. const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format, childrenTextRange); if (closingLineTerminatorCount) { @@ -6526,14 +6012,6 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri } // Source Maps - - function getParsedSourceMap(node: UnparsedSource) { - if (node.parsedSourceMap === undefined && node.sourceMapText !== undefined) { - node.parsedSourceMap = tryParseRawSourceMap(node.sourceMapText) || false; - } - return node.parsedSourceMap || undefined; - } - function pipelineEmitWithSourceMaps(hint: EmitHint, node: Node) { const pipelinePhase = getNextPipelinePhase(PipelinePhase.SourceMaps, hint, node); emitSourceMapsBeforeNode(node); @@ -6546,32 +6024,16 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri const sourceMapRange = getSourceMapRange(node); // Emit leading sourcemap - if (isUnparsedNode(node)) { - Debug.assertIsDefined(node.parent, "UnparsedNodes must have parent pointers"); - const parsed = getParsedSourceMap(node.parent); - if (parsed && sourceMapGenerator) { - sourceMapGenerator.appendSourceMap( - writer.getLine(), - writer.getColumn(), - parsed, - node.parent.sourceMapPath!, - node.parent.getLineAndCharacterOfPosition(node.pos), - node.parent.getLineAndCharacterOfPosition(node.end), - ); - } + const source = sourceMapRange.source || sourceMapSource; + if ( + node.kind !== SyntaxKind.NotEmittedStatement + && (emitFlags & EmitFlags.NoLeadingSourceMap) === 0 + && sourceMapRange.pos >= 0 + ) { + emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); } - else { - const source = sourceMapRange.source || sourceMapSource; - if ( - node.kind !== SyntaxKind.NotEmittedStatement - && (emitFlags & EmitFlags.NoLeadingSourceMap) === 0 - && sourceMapRange.pos >= 0 - ) { - emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos)); - } - if (emitFlags & EmitFlags.NoNestedSourceMaps) { - sourceMapsDisabled = true; - } + if (emitFlags & EmitFlags.NoNestedSourceMaps) { + sourceMapsDisabled = true; } } @@ -6580,17 +6042,15 @@ export function createPrinter(printerOptions: PrinterOptions = {}, handlers: Pri const sourceMapRange = getSourceMapRange(node); // Emit trailing sourcemap - if (!isUnparsedNode(node)) { - if (emitFlags & EmitFlags.NoNestedSourceMaps) { - sourceMapsDisabled = false; - } - if ( - node.kind !== SyntaxKind.NotEmittedStatement - && (emitFlags & EmitFlags.NoTrailingSourceMap) === 0 - && sourceMapRange.end >= 0 - ) { - emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); - } + if (emitFlags & EmitFlags.NoNestedSourceMaps) { + sourceMapsDisabled = false; + } + if ( + node.kind !== SyntaxKind.NotEmittedStatement + && (emitFlags & EmitFlags.NoTrailingSourceMap) === 0 + && sourceMapRange.end >= 0 + ) { + emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end); } } diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts index 8d995def558f2..a6950c167c6b2 100644 --- a/src/compiler/factory/emitHelpers.ts +++ b/src/compiler/factory/emitHelpers.ts @@ -1,7 +1,6 @@ import { __String, ArrayLiteralExpression, - arrayToMap, BindingOrAssignmentElement, Block, compareValues, @@ -1461,44 +1460,6 @@ export const disposeResourcesHelper: UnscopedEmitHelper = { });`, }; -let allUnscopedEmitHelpers: ReadonlyMap | undefined; - -/** @internal */ -export function getAllUnscopedEmitHelpers() { - return allUnscopedEmitHelpers || (allUnscopedEmitHelpers = arrayToMap([ - decorateHelper, - metadataHelper, - paramHelper, - esDecorateHelper, - runInitializersHelper, - assignHelper, - awaitHelper, - asyncGeneratorHelper, - asyncDelegator, - asyncValues, - restHelper, - awaiterHelper, - extendsHelper, - templateObjectHelper, - spreadArrayHelper, - valuesHelper, - readHelper, - propKeyHelper, - setFunctionNameHelper, - generatorHelper, - importStarHelper, - importDefaultHelper, - exportStarHelper, - classPrivateFieldGetHelper, - classPrivateFieldSetHelper, - classPrivateFieldInHelper, - createBindingHelper, - setModuleDefaultHelper, - addDisposableResourceHelper, - disposeResourcesHelper, - ], helper => helper.name)); -} - /** @internal */ export const asyncSuperHelper: EmitHelper = { name: "typescript:async-super", diff --git a/src/compiler/factory/nodeFactory.ts b/src/compiler/factory/nodeFactory.ts index 907ab3833b672..edc0a5c4f60be 100644 --- a/src/compiler/factory/nodeFactory.ts +++ b/src/compiler/factory/nodeFactory.ts @@ -29,12 +29,7 @@ import { Block, BooleanLiteral, BreakStatement, - BuildInfo, Bundle, - BundleFileHasNoDefaultLib, - BundleFileInfo, - BundleFileReference, - BundleFileSectionKind, CallBinding, CallChain, CallExpression, @@ -51,8 +46,6 @@ import { ClassStaticBlockDeclaration, ColonToken, CommaListExpression, - CompilerHost, - CompilerOptions, ComputedPropertyName, ConciseBody, ConditionalExpression, @@ -113,13 +106,10 @@ import { GeneratedNamePart, GeneratedPrivateIdentifier, GetAccessorDeclaration, - getAllUnscopedEmitHelpers, - getBuildInfo, getCommentRange, getEmitFlags, getIdentifierTypeArguments, getJSDocTypeAliasName, - getLineAndCharacterOfPosition, getNameOfDeclaration, getNodeId, getNonAssignedNameOfDeclaration, @@ -151,7 +141,6 @@ import { IndexedAccessTypeNode, IndexSignatureDeclaration, InferTypeNode, - InputFiles, InterfaceDeclaration, InternalEmitFlags, IntersectionTypeNode, @@ -218,7 +207,6 @@ import { isSourceFile, isStatement, isStatementOrBlock, - isString, isStringLiteral, isSuperKeyword, isSuperProperty, @@ -302,7 +290,6 @@ import { LeftHandSideExpression, LiteralToken, LiteralTypeNode, - map, MappedTypeNode, MemberName, memoize, @@ -321,7 +308,6 @@ import { ModuleBlock, ModuleBody, ModuleDeclaration, - ModuleKind, ModuleName, ModuleReference, Mutable, @@ -359,7 +345,6 @@ import { ParameterDeclaration, ParenthesizedExpression, ParenthesizedTypeNode, - parseNodeFactory, PartiallyEmittedExpression, Path, PlusToken, @@ -398,13 +383,11 @@ import { ScriptTarget, SemicolonClassElement, SetAccessorDeclaration, - setEachParent, setEmitFlags, setIdentifierAutoGenerate, setIdentifierTypeArguments, setParent, setTextRange, - setTextRangePosWidth, ShorthandPropertyAssignment, SignatureDeclarationBase, singleOrUndefined, @@ -462,14 +445,6 @@ import { TypeReferenceNode, UnionOrIntersectionTypeNode, UnionTypeNode, - UnparsedNode, - UnparsedPrepend, - UnparsedPrologue, - UnparsedSource, - UnparsedSourceText, - UnparsedSyntheticReference, - UnparsedTextLike, - UnscopedEmitHelper, VariableDeclaration, VariableDeclarationList, VariableStatement, @@ -1025,12 +1000,6 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode createRedirectedSourceFile, createBundle, updateBundle, - createUnparsedSource, - createUnparsedPrologue, - createUnparsedPrepend, - createUnparsedTextLike, - createUnparsedSyntheticReference, - createInputFiles, createSyntheticExpression, createSyntaxList, createNotEmittedStatement, @@ -6185,9 +6154,8 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode } // @api - function createBundle(sourceFiles: readonly SourceFile[], prepends: readonly (UnparsedSource | InputFiles)[] = emptyArray) { + function createBundle(sourceFiles: readonly SourceFile[]) { const node = createBaseNode(SyntaxKind.Bundle); - node.prepends = prepends; node.sourceFiles = sourceFiles; node.syntheticFileReferences = undefined; node.syntheticTypeReferences = undefined; @@ -6197,66 +6165,12 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode } // @api - function updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends: readonly (UnparsedSource | InputFiles)[] = emptyArray) { + function updateBundle(node: Bundle, sourceFiles: readonly SourceFile[]) { return node.sourceFiles !== sourceFiles - || node.prepends !== prepends - ? update(createBundle(sourceFiles, prepends), node) + ? update(createBundle(sourceFiles), node) : node; } - // @api - function createUnparsedSource(prologues: readonly UnparsedPrologue[], syntheticReferences: readonly UnparsedSyntheticReference[] | undefined, texts: readonly UnparsedSourceText[]) { - const node = createBaseNode(SyntaxKind.UnparsedSource); - node.prologues = prologues; - node.syntheticReferences = syntheticReferences; - node.texts = texts; - node.fileName = ""; - node.text = ""; - node.referencedFiles = emptyArray; - node.libReferenceDirectives = emptyArray; - node.getLineAndCharacterOfPosition = pos => getLineAndCharacterOfPosition(node, pos); - return node; - } - - function createBaseUnparsedNode(kind: T["kind"], data?: string) { - const node = createBaseNode(kind); - node.data = data; - return node; - } - - // @api - function createUnparsedPrologue(data?: string): UnparsedPrologue { - return createBaseUnparsedNode(SyntaxKind.UnparsedPrologue, data); - } - - // @api - function createUnparsedPrepend(data: string | undefined, texts: readonly UnparsedTextLike[]): UnparsedPrepend { - const node = createBaseUnparsedNode(SyntaxKind.UnparsedPrepend, data); - node.texts = texts; - return node; - } - - // @api - function createUnparsedTextLike(data: string | undefined, internal: boolean): UnparsedTextLike { - return createBaseUnparsedNode(internal ? SyntaxKind.UnparsedInternalText : SyntaxKind.UnparsedText, data); - } - - // @api - function createUnparsedSyntheticReference(section: BundleFileHasNoDefaultLib | BundleFileReference): UnparsedSyntheticReference { - const node = createBaseNode(SyntaxKind.UnparsedSyntheticReference); - node.data = section.data; - node.section = section; - return node; - } - - // @api - function createInputFiles(): InputFiles { - const node = createBaseNode(SyntaxKind.InputFiles); - node.javascriptText = ""; - node.declarationText = ""; - return node; - } - // // Synthetic Nodes (used by checker) // @@ -7446,314 +7360,6 @@ const syntheticFactory: BaseNodeFactory = { export const factory = createNodeFactory(NodeFactoryFlags.NoIndentationOnFreshPropertyAccess, syntheticFactory); -/** @deprecated */ -export function createUnparsedSourceFile(text: string): UnparsedSource; -/** @deprecated */ -export function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource; -/** @deprecated */ -export function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource; -export function createUnparsedSourceFile(textOrInputFiles: string | InputFiles, mapPathOrType?: string, mapTextOrStripInternal?: string | boolean): UnparsedSource { - let stripInternal: boolean | undefined; - let bundleFileInfo: BundleFileInfo | undefined; - let fileName: string; - let text: string | undefined; - let length: number | (() => number); - let sourceMapPath: string | undefined; - let sourceMapText: string | undefined; - let getText: (() => string) | undefined; - let getSourceMapText: (() => string | undefined) | undefined; - let oldFileOfCurrentEmit: boolean | undefined; - - if (!isString(textOrInputFiles)) { - Debug.assert(mapPathOrType === "js" || mapPathOrType === "dts"); - fileName = (mapPathOrType === "js" ? textOrInputFiles.javascriptPath : textOrInputFiles.declarationPath) || ""; - sourceMapPath = mapPathOrType === "js" ? textOrInputFiles.javascriptMapPath : textOrInputFiles.declarationMapPath; - getText = () => mapPathOrType === "js" ? textOrInputFiles.javascriptText : textOrInputFiles.declarationText; - getSourceMapText = () => mapPathOrType === "js" ? textOrInputFiles.javascriptMapText : textOrInputFiles.declarationMapText; - length = () => getText!().length; - if (textOrInputFiles.buildInfo && textOrInputFiles.buildInfo.bundle) { - Debug.assert(mapTextOrStripInternal === undefined || typeof mapTextOrStripInternal === "boolean"); - stripInternal = mapTextOrStripInternal; - bundleFileInfo = mapPathOrType === "js" ? textOrInputFiles.buildInfo.bundle.js : textOrInputFiles.buildInfo.bundle.dts; - oldFileOfCurrentEmit = textOrInputFiles.oldFileOfCurrentEmit; - } - } - else { - fileName = ""; - text = textOrInputFiles; - length = textOrInputFiles.length; - sourceMapPath = mapPathOrType; - sourceMapText = mapTextOrStripInternal as string; - } - const node = oldFileOfCurrentEmit ? - parseOldFileOfCurrentEmit(Debug.checkDefined(bundleFileInfo)) : - parseUnparsedSourceFile(bundleFileInfo, stripInternal, length); - node.fileName = fileName; - node.sourceMapPath = sourceMapPath; - node.oldFileOfCurrentEmit = oldFileOfCurrentEmit; - if (getText && getSourceMapText) { - Object.defineProperty(node, "text", { get: getText }); - Object.defineProperty(node, "sourceMapText", { get: getSourceMapText }); - } - else { - Debug.assert(!oldFileOfCurrentEmit); - node.text = text ?? ""; - node.sourceMapText = sourceMapText; - } - - return node; -} - -function parseUnparsedSourceFile(bundleFileInfo: BundleFileInfo | undefined, stripInternal: boolean | undefined, length: number | (() => number)) { - let prologues: UnparsedPrologue[] | undefined; - let helpers: UnscopedEmitHelper[] | undefined; - let referencedFiles: FileReference[] | undefined; - let typeReferenceDirectives: FileReference[] | undefined; - let libReferenceDirectives: FileReference[] | undefined; - let prependChildren: UnparsedTextLike[] | undefined; - let texts: UnparsedSourceText[] | undefined; - let hasNoDefaultLib: boolean | undefined; - - for (const section of bundleFileInfo ? bundleFileInfo.sections : emptyArray) { - switch (section.kind) { - case BundleFileSectionKind.Prologue: - prologues = append(prologues, setTextRange(factory.createUnparsedPrologue(section.data), section)); - break; - case BundleFileSectionKind.EmitHelpers: - helpers = append(helpers, getAllUnscopedEmitHelpers().get(section.data)!); - break; - case BundleFileSectionKind.NoDefaultLib: - hasNoDefaultLib = true; - break; - case BundleFileSectionKind.Reference: - referencedFiles = append(referencedFiles, { pos: -1, end: -1, fileName: section.data }); - break; - case BundleFileSectionKind.Type: - typeReferenceDirectives = append(typeReferenceDirectives, { pos: -1, end: -1, fileName: section.data }); - break; - case BundleFileSectionKind.TypeResolutionModeImport: - typeReferenceDirectives = append(typeReferenceDirectives, { pos: -1, end: -1, fileName: section.data, resolutionMode: ModuleKind.ESNext }); - break; - case BundleFileSectionKind.TypeResolutionModeRequire: - typeReferenceDirectives = append(typeReferenceDirectives, { pos: -1, end: -1, fileName: section.data, resolutionMode: ModuleKind.CommonJS }); - break; - case BundleFileSectionKind.Lib: - libReferenceDirectives = append(libReferenceDirectives, { pos: -1, end: -1, fileName: section.data }); - break; - case BundleFileSectionKind.Prepend: - let prependTexts: UnparsedTextLike[] | undefined; - for (const text of section.texts) { - if (!stripInternal || text.kind !== BundleFileSectionKind.Internal) { - prependTexts = append(prependTexts, setTextRange(factory.createUnparsedTextLike(text.data, text.kind === BundleFileSectionKind.Internal), text)); - } - } - prependChildren = addRange(prependChildren, prependTexts); - texts = append(texts, factory.createUnparsedPrepend(section.data, prependTexts ?? emptyArray)); - break; - case BundleFileSectionKind.Internal: - if (stripInternal) { - if (!texts) texts = []; - break; - } - // falls through - - case BundleFileSectionKind.Text: - texts = append(texts, setTextRange(factory.createUnparsedTextLike(section.data, section.kind === BundleFileSectionKind.Internal), section)); - break; - default: - Debug.assertNever(section); - } - } - - if (!texts) { - const textNode = factory.createUnparsedTextLike(/*data*/ undefined, /*internal*/ false); - setTextRangePosWidth(textNode, 0, typeof length === "function" ? length() : length); - texts = [textNode]; - } - - const node = parseNodeFactory.createUnparsedSource(prologues ?? emptyArray, /*syntheticReferences*/ undefined, texts); - setEachParent(prologues, node); - setEachParent(texts, node); - setEachParent(prependChildren, node); - node.hasNoDefaultLib = hasNoDefaultLib; - node.helpers = helpers; - node.referencedFiles = referencedFiles || emptyArray; - node.typeReferenceDirectives = typeReferenceDirectives; - node.libReferenceDirectives = libReferenceDirectives || emptyArray; - return node; -} - -function parseOldFileOfCurrentEmit(bundleFileInfo: BundleFileInfo) { - let texts: UnparsedTextLike[] | undefined; - let syntheticReferences: UnparsedSyntheticReference[] | undefined; - for (const section of bundleFileInfo.sections) { - switch (section.kind) { - case BundleFileSectionKind.Internal: - case BundleFileSectionKind.Text: - texts = append(texts, setTextRange(factory.createUnparsedTextLike(section.data, section.kind === BundleFileSectionKind.Internal), section)); - break; - - case BundleFileSectionKind.NoDefaultLib: - case BundleFileSectionKind.Reference: - case BundleFileSectionKind.Type: - case BundleFileSectionKind.TypeResolutionModeImport: - case BundleFileSectionKind.TypeResolutionModeRequire: - case BundleFileSectionKind.Lib: - syntheticReferences = append(syntheticReferences, setTextRange(factory.createUnparsedSyntheticReference(section), section)); - break; - - // Ignore - case BundleFileSectionKind.Prologue: - case BundleFileSectionKind.EmitHelpers: - case BundleFileSectionKind.Prepend: - break; - - default: - Debug.assertNever(section); - } - } - - const node = factory.createUnparsedSource(emptyArray, syntheticReferences, texts ?? emptyArray); - setEachParent(syntheticReferences, node); - setEachParent(texts, node); - node.helpers = map(bundleFileInfo.sources && bundleFileInfo.sources.helpers, name => getAllUnscopedEmitHelpers().get(name)!); - return node; -} - -// TODO(rbuckton): Move part of this to factory -/** @deprecated */ -export function createInputFiles( - javascriptText: string, - declarationText: string, -): InputFiles; -/** @deprecated */ -export function createInputFiles( - javascriptText: string, - declarationText: string, - javascriptMapPath: string | undefined, - javascriptMapText: string | undefined, - declarationMapPath: string | undefined, - declarationMapText: string | undefined, -): InputFiles; -/** @deprecated */ -export function createInputFiles( - readFileText: (path: string) => string | undefined, - javascriptPath: string, - javascriptMapPath: string | undefined, - declarationPath: string, - declarationMapPath: string | undefined, - buildInfoPath: string | undefined, -): InputFiles; -export function createInputFiles( - javascriptTextOrReadFileText: string | ((path: string) => string | undefined), - declarationTextOrJavascriptPath: string, - javascriptMapPath?: string, - javascriptMapTextOrDeclarationPath?: string, - declarationMapPath?: string, - declarationMapTextOrBuildInfoPath?: string, -): InputFiles { - return !isString(javascriptTextOrReadFileText) ? - createInputFilesWithFilePaths( - javascriptTextOrReadFileText, - declarationTextOrJavascriptPath, - javascriptMapPath, - javascriptMapTextOrDeclarationPath!, - declarationMapPath, - declarationMapTextOrBuildInfoPath, - ) : - createInputFilesWithFileTexts( - /*javascriptPath*/ undefined, - javascriptTextOrReadFileText, - javascriptMapPath, - javascriptMapTextOrDeclarationPath, - /*declarationPath*/ undefined, - declarationTextOrJavascriptPath, - declarationMapPath, - declarationMapTextOrBuildInfoPath, - ); -} -/** @deprecated @internal */ -export function createInputFilesWithFilePaths( - readFileText: (path: string) => string | undefined, - javascriptPath: string, - javascriptMapPath: string | undefined, - declarationPath: string, - declarationMapPath: string | undefined, - buildInfoPath: string | undefined, - host?: CompilerHost, - options?: CompilerOptions, -): InputFiles { - const node = parseNodeFactory.createInputFiles(); - node.javascriptPath = javascriptPath; - node.javascriptMapPath = javascriptMapPath; - node.declarationPath = declarationPath; - node.declarationMapPath = declarationMapPath; - node.buildInfoPath = buildInfoPath; - const cache = new Map(); - const textGetter = (path: string | undefined) => { - if (path === undefined) return undefined; - let value = cache.get(path); - if (value === undefined) { - value = readFileText(path); - cache.set(path, value !== undefined ? value : false); - } - return value !== false ? value as string : undefined; - }; - const definedTextGetter = (path: string) => { - const result = textGetter(path); - return result !== undefined ? result : `/* Input file ${path} was missing */\r\n`; - }; - let buildInfo: BuildInfo | false; - const getAndCacheBuildInfo = () => { - if (buildInfo === undefined && buildInfoPath) { - if (host?.getBuildInfo) { - buildInfo = host.getBuildInfo(buildInfoPath, options!.configFilePath) ?? false; - } - else { - const result = textGetter(buildInfoPath); - buildInfo = result !== undefined ? getBuildInfo(buildInfoPath, result) ?? false : false; - } - } - return buildInfo || undefined; - }; - Object.defineProperties(node, { - javascriptText: { get: () => definedTextGetter(javascriptPath) }, - javascriptMapText: { get: () => textGetter(javascriptMapPath) }, // TODO:: if there is inline sourceMap in jsFile, use that - declarationText: { get: () => definedTextGetter(Debug.checkDefined(declarationPath)) }, - declarationMapText: { get: () => textGetter(declarationMapPath) }, // TODO:: if there is inline sourceMap in dtsFile, use that - buildInfo: { get: getAndCacheBuildInfo }, - }); - return node; -} -/** @deprecated @internal */ -export function createInputFilesWithFileTexts( - javascriptPath: string | undefined, - javascriptText: string, - javascriptMapPath: string | undefined, - javascriptMapText: string | undefined, - declarationPath: string | undefined, - declarationText: string, - declarationMapPath: string | undefined, - declarationMapText: string | undefined, - buildInfoPath?: string, - buildInfo?: BuildInfo, - oldFileOfCurrentEmit?: boolean, -): InputFiles { - const node = parseNodeFactory.createInputFiles(); - node.javascriptPath = javascriptPath; - node.javascriptText = javascriptText; - node.javascriptMapPath = javascriptMapPath; - node.javascriptMapText = javascriptMapText; - node.declarationPath = declarationPath; - node.declarationText = declarationText; - node.declarationMapPath = declarationMapPath; - node.declarationMapText = declarationMapText; - node.buildInfoPath = buildInfoPath; - node.buildInfo = buildInfo; - node.oldFileOfCurrentEmit = oldFileOfCurrentEmit; - return node; -} - let SourceMapSource: new (fileName: string, text: string, skipTrivia?: (pos: number) => number) => SourceMapSource; /** diff --git a/src/compiler/factory/nodeTests.ts b/src/compiler/factory/nodeTests.ts index eca54d346d882..249b442316cf3 100644 --- a/src/compiler/factory/nodeTests.ts +++ b/src/compiler/factory/nodeTests.ts @@ -219,8 +219,6 @@ import { TypeQueryNode, TypeReferenceNode, UnionTypeNode, - UnparsedPrepend, - UnparsedSource, VariableDeclaration, VariableDeclarationList, VariableStatement, @@ -1006,18 +1004,6 @@ export function isEnumMember(node: Node): node is EnumMember { return node.kind === SyntaxKind.EnumMember; } -// Unparsed - -// TODO(rbuckton): isUnparsedPrologue -/** @deprecated */ -export function isUnparsedPrepend(node: Node): node is UnparsedPrepend { - return node.kind === SyntaxKind.UnparsedPrepend; -} - -// TODO(rbuckton): isUnparsedText -// TODO(rbuckton): isUnparsedInternalText -// TODO(rbuckton): isUnparsedSyntheticReference - // Top-level nodes export function isSourceFile(node: Node): node is SourceFile { return node.kind === SyntaxKind.SourceFile; @@ -1027,11 +1013,6 @@ export function isBundle(node: Node): node is Bundle { return node.kind === SyntaxKind.Bundle; } -/** @deprecated */ -export function isUnparsedSource(node: Node): node is UnparsedSource { - return node.kind === SyntaxKind.UnparsedSource; -} - // TODO(rbuckton): isInputFiles // JSDoc Elements diff --git a/src/compiler/program.ts b/src/compiler/program.ts index d34984bca506c..3e3d3058a632a 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -39,7 +39,6 @@ import { createFileDiagnostic, createFileDiagnosticFromMessageChain, createGetCanonicalFileName, - createInputFilesWithFilePaths, createModeAwareCache, createModeAwareCacheKey, createModuleResolutionCache, @@ -132,7 +131,6 @@ import { getNormalizedAbsolutePathWithoutRoot, getNormalizedPathComponents, getOutputDeclarationFileName, - getOutputPathsForBundle, getPackageScopeForPath, getPathFromPathComponents, getPositionOfLineAndCharacter, @@ -170,7 +168,6 @@ import { ImportClause, ImportDeclaration, ImportOrExportSpecifier, - InputFiles, InternalEmitFlags, inverseJsxOptionMap, isAmbientModule, @@ -318,7 +315,6 @@ import { TypeChecker, typeDirectiveIsEqualTo, TypeReferenceDirectiveResolutionCache, - UnparsedSource, VariableDeclaration, VariableStatement, Version, @@ -2629,7 +2625,6 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg function getEmitHost(writeFileCallback?: WriteFileCallback): EmitHost { return { - getPrependNodes, getCanonicalFileName, getCommonSourceDirectory: program.getCommonSourceDirectory, getCompilerOptions: program.getCompilerOptions, @@ -2655,7 +2650,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return host.fileExists(f); }, useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(), - getBuildInfo: bundle => program.getBuildInfo?.(bundle), + getBuildInfo: () => program.getBuildInfo?.(), getSourceFileFromReference: (file, ref) => program.getSourceFileFromReference(file, ref), redirectTargetsMap, getFileIncludeReasons: program.getFileIncludeReasons, @@ -2701,19 +2696,6 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg return projectReferences; } - function getPrependNodes() { - return createPrependNodes( - projectReferences, - (_ref, index) => resolvedProjectReferences![index]?.commandLine, - fileName => { - const path = toPath(fileName); - const sourceFile = getSourceFileByPath(path); - return sourceFile ? sourceFile.text : filesByName.has(path) ? undefined : host.readFile(path); - }, - host, - ); - } - function isSourceFileFromExternalLibrary(file: SourceFile): boolean { return !!sourceFilesFoundSearchingNodeModules.get(file.path); } @@ -3469,7 +3451,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg } /** This should have similar behavior to 'processSourceFile' without diagnostics or mutation. */ - function getSourceFileFromReference(referencingFile: SourceFile | UnparsedSource, ref: FileReference): SourceFile | undefined { + function getSourceFileFromReference(referencingFile: SourceFile, ref: FileReference): SourceFile | undefined { return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), getSourceFile); } @@ -4782,17 +4764,6 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg if (options.noEmit) createDiagnosticForReference(parentFile, index, Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path); } } - if (ref.prepend) { - const out = outFile(options); - if (out) { - if (!host.fileExists(out)) { - createDiagnosticForReference(parentFile, index, Diagnostics.Output_file_0_from_project_1_does_not_exist, out, ref.path); - } - } - else { - createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set, ref.path); - } - } if (!parent && buildInfoPath && buildInfoPath === getTsBuildInfoEmitOutputFilePath(options)) { createDiagnosticForReference(parentFile, index, Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path); hasEmitBlockingDiagnostics.set(toPath(buildInfoPath), true); @@ -5256,30 +5227,6 @@ export function parseConfigHostFromCompilerHostLike( }; } -/** @deprecated @internal */ -export function createPrependNodes( - projectReferences: readonly ProjectReference[] | undefined, - getCommandLine: (ref: ProjectReference, index: number) => ParsedCommandLine | undefined, - readFile: (path: string) => string | undefined, - host: CompilerHost, -) { - if (!projectReferences) return emptyArray; - let nodes: InputFiles[] | undefined; - for (let i = 0; i < projectReferences.length; i++) { - const ref = projectReferences[i]; - const resolvedRefOpts = getCommandLine(ref, i); - if (ref.prepend && resolvedRefOpts && resolvedRefOpts.options) { - const out = outFile(resolvedRefOpts.options); - // Upstream project didn't have outFile set -- skip (error will have been issued earlier) - if (!out) continue; - - const { jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath } = getOutputPathsForBundle(resolvedRefOpts.options, /*forceDtsPaths*/ true); - const node = createInputFilesWithFilePaths(readFile, jsFilePath!, sourceMapFilePath, declarationFilePath!, declarationMapPath, buildInfoPath, host, resolvedRefOpts.options); - (nodes || (nodes = [])).push(node); - } - } - return nodes || emptyArray; -} /** * Returns the target config filename of a project reference. * Note: The file might not exist. diff --git a/src/compiler/transformers/declarations.ts b/src/compiler/transformers/declarations.ts index 0a9e58c6de3b8..bcbb544a5ce8b 100644 --- a/src/compiler/transformers/declarations.ts +++ b/src/compiler/transformers/declarations.ts @@ -26,7 +26,6 @@ import { createGetSymbolAccessibilityDiagnosticForNode, createGetSymbolAccessibilityDiagnosticForNodeName, createSymbolTable, - createUnparsedSourceFile, Debug, Declaration, DeclarationDiagnosticProducing, @@ -144,7 +143,6 @@ import { isTypeNode, isTypeParameterDeclaration, isTypeQueryNode, - isUnparsedSource, isVarAwaitUsing, isVariableDeclaration, isVarUsing, @@ -210,7 +208,6 @@ import { TypeParameterDeclaration, TypeReferenceNode, unescapeLeadingUnderscores, - UnparsedSource, VariableDeclaration, VariableDeclarationList, VariableStatement, @@ -492,17 +489,6 @@ export function transformDeclarations(context: TransformationContext) { const updated = isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS(sourceFile)) : visitNodes(sourceFile.statements, visitDeclarationStatements, isStatement); return factory.updateSourceFile(sourceFile, transformAndReplaceLatePaintedStatements(updated), /*isDeclarationFile*/ true, /*referencedFiles*/ [], /*typeReferences*/ [], /*hasNoDefaultLib*/ false, /*libReferences*/ []); }), - mapDefined(node.prepends, prepend => { - if (prepend.kind === SyntaxKind.InputFiles) { - const sourceFile = createUnparsedSourceFile(prepend, "dts", stripInternal); - hasNoDefaultLib = hasNoDefaultLib || !!sourceFile.hasNoDefaultLib; - collectReferences(sourceFile, refs); - recordTypeReferenceDirectivesIfNecessary(map(sourceFile.typeReferenceDirectives, ref => [ref.fileName, ref.resolutionMode])); - collectLibs(sourceFile, libs); - return sourceFile; - } - return prepend; - }), ); bundle.syntheticFileReferences = []; bundle.syntheticTypeReferences = getFileReferencesForUsedTypeReferences(); @@ -633,8 +619,8 @@ export function transformDeclarations(context: TransformationContext) { } } - function collectReferences(sourceFile: SourceFile | UnparsedSource, ret: Map) { - if (noResolve || (!isUnparsedSource(sourceFile) && isSourceFileJS(sourceFile))) return ret; + function collectReferences(sourceFile: SourceFile, ret: Map) { + if (noResolve || isSourceFileJS(sourceFile)) return ret; forEach(sourceFile.referencedFiles, f => { const elem = host.getSourceFileFromReference(sourceFile, f); if (elem) { @@ -644,7 +630,7 @@ export function transformDeclarations(context: TransformationContext) { return ret; } - function collectLibs(sourceFile: SourceFile | UnparsedSource, ret: Map) { + function collectLibs(sourceFile: SourceFile, ret: Map) { forEach(sourceFile.libReferenceDirectives, ref => { const lib = host.getLibFileFromReference(ref); if (lib) { diff --git a/src/compiler/transformers/module/node.ts b/src/compiler/transformers/module/node.ts index 7a36f5f8e86a0..920573dba76cd 100644 --- a/src/compiler/transformers/module/node.ts +++ b/src/compiler/transformers/module/node.ts @@ -92,6 +92,6 @@ export function transformNodeModule(context: TransformationContext) { } function transformBundle(node: Bundle) { - return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); + return context.factory.createBundle(map(node.sourceFiles, transformSourceFile)); } } diff --git a/src/compiler/transformers/ts.ts b/src/compiler/transformers/ts.ts index a0a997e3444d5..2e3c210965792 100644 --- a/src/compiler/transformers/ts.ts +++ b/src/compiler/transformers/ts.ts @@ -25,7 +25,6 @@ import { createRange, createRuntimeTypeSerializer, createTokenRange, - createUnparsedSourceFile, Debug, Declaration, Decorator, @@ -293,12 +292,6 @@ export function transformTypeScript(context: TransformationContext) { function transformBundle(node: Bundle) { return factory.createBundle( node.sourceFiles.map(transformSourceFile), - mapDefined(node.prepends, prepend => { - if (prepend.kind === SyntaxKind.InputFiles) { - return createUnparsedSourceFile(prepend, "js"); - } - return prepend; - }), ); } diff --git a/src/compiler/transformers/utilities.ts b/src/compiler/transformers/utilities.ts index 9056403e0c1a4..e585557b48a18 100644 --- a/src/compiler/transformers/utilities.ts +++ b/src/compiler/transformers/utilities.ts @@ -127,7 +127,7 @@ export function chainBundle(context: CoreTransformationContext, transformSourceF } function transformBundle(node: Bundle) { - return context.factory.createBundle(map(node.sourceFiles, transformSourceFile), node.prepends); + return context.factory.createBundle(map(node.sourceFiles, transformSourceFile)); } } diff --git a/src/compiler/tsbuild.ts b/src/compiler/tsbuild.ts index 0e89b75351622..cf902ea11c2f8 100644 --- a/src/compiler/tsbuild.ts +++ b/src/compiler/tsbuild.ts @@ -16,13 +16,6 @@ export enum UpToDateStatusType { * This means we can Pseudo-build (just touch timestamps), as if we had actually built this project. */ UpToDateWithUpstreamTypes, - /** - * @deprecated - * The project appears out of date because its upstream inputs are newer than its outputs, - * but all of its outputs are actually newer than the previous identical outputs of its (.d.ts) inputs. - * This means we can Pseudo-build (just manipulate outputs), as if we had actually built this project. - */ - OutOfDateWithPrepend, OutputMissing, ErrorReadingFile, OutOfDateWithSelf, @@ -47,7 +40,6 @@ export enum UpToDateStatusType { export type UpToDateStatus = | Status.Unbuildable | Status.UpToDate - | Status.OutOfDateWithPrepend | Status.OutputMissing | Status.ErrorReadingFile | Status.OutOfDateWithSelf @@ -90,16 +82,6 @@ export namespace Status { oldestOutputFileName: string; } - /** - * @deprecated - * The project is up to date with respect to its inputs except for prepend output changed (no declaration file change in prepend). - */ - export interface OutOfDateWithPrepend { - type: UpToDateStatusType.OutOfDateWithPrepend; - outOfDateOutputFileName: string; - newerProjectName: string; - } - /** * One or more of the outputs of the project does not exist. */ diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 902e57184fa30..c439c3ccda7c5 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -40,7 +40,6 @@ import { EmitAndSemanticDiagnosticsBuilderProgram, emitFilesAndReportErrors, EmitResult, - emitUsingBuildInfo, emptyArray, ExitStatus, ExtendedConfigCacheEntry, @@ -75,7 +74,6 @@ import { isIgnoredFileFromWildCardWatching, isIncrementalCompilation, isPackageJsonInfo, - isString, listFiles, loadWithModeAwareCache, maybeBind, @@ -93,7 +91,6 @@ import { PollingInterval, Program, ProgramBuildInfo, - ProgramBundleEmitBuildInfo, ProgramHost, ProgramMultiFileEmitBuildInfo, ProgramUpdateLevel, @@ -243,8 +240,6 @@ export interface SolutionBuilderHostBase extends Progr // TODO: To do better with watch mode and normal build mode api that creates program and emits files // This currently helps enable --diagnostics and --extendedDiagnostics afterProgramEmitAndDiagnostics?(program: T): void; - /** @deprecated @internal */ beforeEmitBundle?(config: ParsedCommandLine): void; - /** @deprecated @internal */ afterEmitBundle?(config: ParsedCommandLine): void; // For testing /** @internal */ now?(): Date; @@ -829,7 +824,6 @@ function setupInitialBuild(state: SolutionBuilderState export enum InvalidatedProjectKind { Build, - /** @deprecated */ UpdateBundle, UpdateOutputFileStamps, } @@ -881,13 +875,7 @@ export interface BuildInvalidedProject extends Invalid // emitNextAffectedFile(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, customTransformers?: CustomTransformers): AffectedFileResult; } -/** @deprecated */ -export interface UpdateBundleProject extends InvalidatedProjectBase { - readonly kind: InvalidatedProjectKind.UpdateBundle; - emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject | undefined; -} - -export type InvalidatedProject = UpdateOutputFileStampsProject | BuildInvalidedProject | UpdateBundleProject; +export type InvalidatedProject = UpdateOutputFileStampsProject | BuildInvalidedProject; function doneInvalidatedProject( state: SolutionBuilderState, @@ -933,111 +921,92 @@ enum BuildStep { SyntaxDiagnostics, SemanticDiagnostics, Emit, - /** @deprecated */ EmitBundle, EmitBuildInfo, - /** @deprecated */ BuildInvalidatedProjectOfBundle, QueueReferencingProjects, Done, } function createBuildOrUpdateInvalidedProject( - kind: InvalidatedProjectKind.Build | InvalidatedProjectKind.UpdateBundle, state: SolutionBuilderState, project: ResolvedConfigFileName, projectPath: ResolvedConfigFilePath, projectIndex: number, config: ParsedCommandLine, buildOrder: readonly ResolvedConfigFileName[], -): BuildInvalidedProject | UpdateBundleProject { - let step = kind === InvalidatedProjectKind.Build ? BuildStep.CreateProgram : BuildStep.EmitBundle; +): BuildInvalidedProject { + let step = BuildStep.CreateProgram; let program: T | undefined; let buildResult: BuildResultFlags | undefined; - let invalidatedProjectOfBundle: BuildInvalidedProject | undefined; - return kind === InvalidatedProjectKind.Build ? - { - kind, - project, - projectPath, - buildOrder, - getCompilerOptions: () => config.options, - getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), - getBuilderProgram: () => withProgramOrUndefined(identity), - getProgram: () => - withProgramOrUndefined( - program => program.getProgramOrUndefined(), - ), - getSourceFile: fileName => - withProgramOrUndefined( - program => program.getSourceFile(fileName), - ), - getSourceFiles: () => - withProgramOrEmptyArray( - program => program.getSourceFiles(), - ), - getOptionsDiagnostics: cancellationToken => - withProgramOrEmptyArray( - program => program.getOptionsDiagnostics(cancellationToken), - ), - getGlobalDiagnostics: cancellationToken => - withProgramOrEmptyArray( - program => program.getGlobalDiagnostics(cancellationToken), - ), - getConfigFileParsingDiagnostics: () => - withProgramOrEmptyArray( - program => program.getConfigFileParsingDiagnostics(), - ), - getSyntacticDiagnostics: (sourceFile, cancellationToken) => - withProgramOrEmptyArray( - program => program.getSyntacticDiagnostics(sourceFile, cancellationToken), - ), - getAllDependencies: sourceFile => - withProgramOrEmptyArray( - program => program.getAllDependencies(sourceFile), - ), - getSemanticDiagnostics: (sourceFile, cancellationToken) => - withProgramOrEmptyArray( - program => program.getSemanticDiagnostics(sourceFile, cancellationToken), - ), - getSemanticDiagnosticsOfNextAffectedFile: (cancellationToken, ignoreSourceFile) => - withProgramOrUndefined( - program => - ((program as any as SemanticDiagnosticsBuilderProgram).getSemanticDiagnosticsOfNextAffectedFile) && - (program as any as SemanticDiagnosticsBuilderProgram).getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile), - ), - emit: (targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) => { - if (targetSourceFile || emitOnlyDtsFiles) { - return withProgramOrUndefined( - program => program.emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers || state.host.getCustomTransformers?.(project)), - ); - } - executeSteps(BuildStep.SemanticDiagnostics, cancellationToken); - if (step === BuildStep.EmitBuildInfo) { - return emitBuildInfo(writeFile, cancellationToken); - } - if (step !== BuildStep.Emit) return undefined; - return emit(writeFile, cancellationToken, customTransformers); - }, - done, - } : - { - kind, - project, - projectPath, - buildOrder, - getCompilerOptions: () => config.options, - getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), - emit: (writeFile: WriteFileCallback | undefined, customTransformers: CustomTransformers | undefined) => { - if (step !== BuildStep.EmitBundle) return invalidatedProjectOfBundle; - return emitBundle(writeFile, customTransformers); - }, - done, - }; + return { + kind: InvalidatedProjectKind.Build, + project, + projectPath, + buildOrder, + getCompilerOptions: () => config.options, + getCurrentDirectory: () => state.compilerHost.getCurrentDirectory(), + getBuilderProgram: () => withProgramOrUndefined(identity), + getProgram: () => + withProgramOrUndefined( + program => program.getProgramOrUndefined(), + ), + getSourceFile: fileName => + withProgramOrUndefined( + program => program.getSourceFile(fileName), + ), + getSourceFiles: () => + withProgramOrEmptyArray( + program => program.getSourceFiles(), + ), + getOptionsDiagnostics: cancellationToken => + withProgramOrEmptyArray( + program => program.getOptionsDiagnostics(cancellationToken), + ), + getGlobalDiagnostics: cancellationToken => + withProgramOrEmptyArray( + program => program.getGlobalDiagnostics(cancellationToken), + ), + getConfigFileParsingDiagnostics: () => + withProgramOrEmptyArray( + program => program.getConfigFileParsingDiagnostics(), + ), + getSyntacticDiagnostics: (sourceFile, cancellationToken) => + withProgramOrEmptyArray( + program => program.getSyntacticDiagnostics(sourceFile, cancellationToken), + ), + getAllDependencies: sourceFile => + withProgramOrEmptyArray( + program => program.getAllDependencies(sourceFile), + ), + getSemanticDiagnostics: (sourceFile, cancellationToken) => + withProgramOrEmptyArray( + program => program.getSemanticDiagnostics(sourceFile, cancellationToken), + ), + getSemanticDiagnosticsOfNextAffectedFile: (cancellationToken, ignoreSourceFile) => + withProgramOrUndefined( + program => + ((program as any as SemanticDiagnosticsBuilderProgram).getSemanticDiagnosticsOfNextAffectedFile) && + (program as any as SemanticDiagnosticsBuilderProgram).getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile), + ), + emit: (targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) => { + if (targetSourceFile || emitOnlyDtsFiles) { + return withProgramOrUndefined( + program => program.emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers || state.host.getCustomTransformers?.(project)), + ); + } + executeSteps(BuildStep.SemanticDiagnostics, cancellationToken); + if (step === BuildStep.EmitBuildInfo) { + return emitBuildInfo(writeFile, cancellationToken); + } + if (step !== BuildStep.Emit) return undefined; + return emit(writeFile, cancellationToken, customTransformers); + }, + done, + }; function done(cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, customTransformers?: CustomTransformers) { executeSteps(BuildStep.Done, cancellationToken, writeFile, customTransformers); - if (kind === InvalidatedProjectKind.Build) performance.mark("SolutionBuilder::Projects built"); - else performance.mark("SolutionBuilder::Bundles updated"); + performance.mark("SolutionBuilder::Projects built"); return doneInvalidatedProject(state, projectPath); } @@ -1225,7 +1194,7 @@ function createBuildOrUpdateInvalidedProject( if (emitResult.emittedFiles && state.write) { emitResult.emittedFiles.forEach(name => listEmittedFile(state, config, name)); } - afterProgramDone(state, program, config); + afterProgramDone(state, program); step = BuildStep.QueueReferencingProjects; return emitResult; } @@ -1261,77 +1230,12 @@ function createBuildOrUpdateInvalidedProject( type: UpToDateStatusType.UpToDate, oldestOutputFileName, }); - afterProgramDone(state, program, config); + afterProgramDone(state, program); step = BuildStep.QueueReferencingProjects; buildResult = resultFlags; return emitDiagnostics; } - function emitBundle(writeFileCallback?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject | undefined { - Debug.assert(kind === InvalidatedProjectKind.UpdateBundle); - if (state.options.dry) { - reportStatus(state, Diagnostics.A_non_dry_build_would_update_output_of_project_0, project); - buildResult = BuildResultFlags.Success; - step = BuildStep.QueueReferencingProjects; - return undefined; - } - - if (state.options.verbose) reportStatus(state, Diagnostics.Updating_output_of_project_0, project); - - // Update js, and source map - const { compilerHost } = state; - state.projectCompilerOptions = config.options; - state.host.beforeEmitBundle?.(config); - const outputFiles = emitUsingBuildInfo( - config, - compilerHost, - ref => { - const refName = resolveProjectName(state, ref.path); - return parseConfigFile(state, refName, toResolvedConfigFilePath(state, refName)); - }, - customTransformers || state.host.getCustomTransformers?.(project), - ); - - if (isString(outputFiles)) { - reportStatus(state, Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1, project, relName(state, outputFiles)); - step = BuildStep.BuildInvalidatedProjectOfBundle; - return invalidatedProjectOfBundle = createBuildOrUpdateInvalidedProject( - InvalidatedProjectKind.Build, - state, - project, - projectPath, - projectIndex, - config, - buildOrder, - ) as BuildInvalidedProject; - } - - // Actual Emit - Debug.assert(!!outputFiles.length); - const emitterDiagnostics = createDiagnosticCollection(); - const emittedOutputs = new Map(); - let resultFlags = BuildResultFlags.DeclarationOutputUnchanged; - const existingBuildInfo = state.buildInfoCache.get(projectPath)!.buildInfo || undefined; - outputFiles.forEach(({ name, text, writeByteOrderMark, data }) => { - emittedOutputs.set(toPath(state, name), name); - if (data?.buildInfo) { - if ((data.buildInfo.program as ProgramBundleEmitBuildInfo)?.outSignature !== (existingBuildInfo?.program as ProgramBundleEmitBuildInfo)?.outSignature) { - resultFlags &= ~BuildResultFlags.DeclarationOutputUnchanged; - } - setBuildInfo(state, data.buildInfo, projectPath, config.options, resultFlags); - } - writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark); - }); - - const emitDiagnostics = finishEmit( - emitterDiagnostics, - emittedOutputs, - outputFiles[0].name, - resultFlags, - ); - return { emitSkipped: false, diagnostics: emitDiagnostics }; - } - function executeSteps(till: BuildStep, cancellationToken?: CancellationToken, writeFile?: WriteFileCallback, customTransformers?: CustomTransformers) { while (step <= till && step < BuildStep.Done) { const currentStep = step; @@ -1356,15 +1260,6 @@ function createBuildOrUpdateInvalidedProject( emitBuildInfo(writeFile, cancellationToken); break; - case BuildStep.EmitBundle: - emitBundle(writeFile, customTransformers); - break; - - case BuildStep.BuildInvalidatedProjectOfBundle: - Debug.checkDefined(invalidatedProjectOfBundle).done(cancellationToken, writeFile, customTransformers); - step = BuildStep.Done; - break; - case BuildStep.QueueReferencingProjects: queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, Debug.checkDefined(buildResult)); step++; @@ -1380,13 +1275,6 @@ function createBuildOrUpdateInvalidedProject( } } -function needsBuild({ options }: SolutionBuilderState, status: UpToDateStatus, config: ParsedCommandLine) { - if (status.type !== UpToDateStatusType.OutOfDateWithPrepend || options.force) return true; - return config.fileNames.length === 0 || - !!getConfigFileParsingDiagnostics(config).length || - !isIncrementalCompilation(config.options); -} - interface InvalidateProjectCreateInfo { kind: InvalidatedProjectKind; status: UpToDateStatus; @@ -1491,9 +1379,7 @@ function getNextInvalidatedProjectCreateInfo( } return { - kind: needsBuild(state, status, config) ? - InvalidatedProjectKind.Build : - InvalidatedProjectKind.UpdateBundle, + kind: InvalidatedProjectKind.Build, status, project, projectPath, @@ -1513,7 +1399,6 @@ function createInvalidatedProjectWithInfo( verboseReportProjectStatus(state, info.project, info.status); return info.kind !== InvalidatedProjectKind.UpdateOutputFileStamps ? createBuildOrUpdateInvalidedProject( - info.kind, state, info.project, info.projectPath, @@ -1556,7 +1441,6 @@ function getOldProgram({ options, builderPrograms, com function afterProgramDone( state: SolutionBuilderState, program: T | undefined, - config: ParsedCommandLine, ) { if (program) { if (state.write) listFiles(program, state.write); @@ -1565,9 +1449,6 @@ function afterProgramDone( } program.releaseProgram(); } - else if (state.host.afterEmitBundle) { - state.host.afterEmitBundle(config); - } state.projectCompilerOptions = state.baseCompilerOptions; } @@ -1586,7 +1467,7 @@ function buildErrors( reportAndStoreErrors(state, resolvedPath, diagnostics); state.projectStatus.set(resolvedPath, { type: UpToDateStatusType.Unbuildable, reason: `${errorType} errors` }); if (canEmitBuildInfo) return { buildResult, step: BuildStep.EmitBuildInfo }; - afterProgramDone(state, program, config); + afterProgramDone(state, program); return { buildResult, step: BuildStep.QueueReferencingProjects }; } @@ -1798,7 +1679,7 @@ function getUpToDateStatusWorker(state: SolutionBuilde fileName: buildInfoPath, }; } - if ((buildInfo.bundle || buildInfo.program) && buildInfo.version !== version) { + if (buildInfo.program && buildInfo.version !== version) { return { type: UpToDateStatusType.TsVersionOutputOfDate, version: buildInfo.version, @@ -1939,13 +1820,10 @@ function getUpToDateStatusWorker(state: SolutionBuilde } const buildInfoCacheEntry = state.buildInfoCache.get(resolvedPath); - /** Inputs are up-to-date, just need either timestamp update or bundle prepend manipulation to make it look up-to-date */ + /** Inputs are up-to-date, just need either timestamp update to make it look up-to-date */ let pseudoUpToDate = false; - let usesPrepend = false; - let upstreamChangedProject: string | undefined; if (referenceStatuses) { for (const { ref, refStatus, resolvedConfig, resolvedRefPath } of referenceStatuses) { - usesPrepend = usesPrepend || !!(ref.prepend); // If the upstream project's newest file is older than our oldest output, we // can't be out of date because of it if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) { @@ -1966,7 +1844,6 @@ function getUpToDateStatusWorker(state: SolutionBuilde const newestDeclarationFileContentChangedTime = getLatestChangedDtsTime(state, resolvedConfig.options, resolvedRefPath); if (newestDeclarationFileContentChangedTime && newestDeclarationFileContentChangedTime <= oldestOutputFileTime) { pseudoUpToDate = true; - upstreamChangedProject = ref.path; continue; } @@ -1996,14 +1873,6 @@ function getUpToDateStatusWorker(state: SolutionBuilde ); if (dependentPackageFileStatus) return dependentPackageFileStatus; - if (usesPrepend && pseudoUpToDate) { - return { - type: UpToDateStatusType.OutOfDateWithPrepend, - outOfDateOutputFileName: oldestOutputFileName!, - newerProjectName: upstreamChangedProject!, - }; - } - // Up to date return { type: pseudoUpToDate ? @@ -2136,7 +2005,6 @@ function queueReferencingProjects( for (const ref of nextProjectConfig.projectReferences) { const resolvedRefPath = resolveProjectName(state, ref.path); if (toResolvedConfigFilePath(state, resolvedRefPath) !== projectPath) continue; - // If the project is referenced with prepend, always build downstream projects, // If declaration output is changed, build the project // otherwise mark the project UpToDateWithUpstreamTypes so it updates output time stamps const status = state.projectStatus.get(nextProjectPath); @@ -2144,27 +2012,17 @@ function queueReferencingProjects( switch (status.type) { case UpToDateStatusType.UpToDate: if (buildResult & BuildResultFlags.DeclarationOutputUnchanged) { - if (ref.prepend) { - state.projectStatus.set(nextProjectPath, { - type: UpToDateStatusType.OutOfDateWithPrepend, - outOfDateOutputFileName: status.oldestOutputFileName, - newerProjectName: project, - }); - } - else { - status.type = UpToDateStatusType.UpToDateWithUpstreamTypes; - } + status.type = UpToDateStatusType.UpToDateWithUpstreamTypes; break; } // falls through case UpToDateStatusType.UpToDateWithInputFileText: case UpToDateStatusType.UpToDateWithUpstreamTypes: - case UpToDateStatusType.OutOfDateWithPrepend: if (!(buildResult & BuildResultFlags.DeclarationOutputUnchanged)) { state.projectStatus.set(nextProjectPath, { type: UpToDateStatusType.OutOfDateWithUpstream, - outOfDateOutputFileName: status.type === UpToDateStatusType.OutOfDateWithPrepend ? status.outOfDateOutputFileName : status.oldestOutputFileName, + outOfDateOutputFileName: status.oldestOutputFileName, newerProjectName: project, }); } @@ -2652,13 +2510,6 @@ function reportUpToDateStatus(state: SolutionBuilderSt } // Don't report anything for "up to date because it was already built" -- too verbose break; - case UpToDateStatusType.OutOfDateWithPrepend: - return reportStatus( - state, - Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, - relName(state, configFileName), - relName(state, status.newerProjectName), - ); case UpToDateStatusType.UpToDateWithUpstreamTypes: return reportStatus( state, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 28061c88e94bb..2656262ae3e83 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -399,8 +399,6 @@ export const enum SyntaxKind { // Top-level nodes SourceFile, Bundle, - /** @deprecated */ UnparsedSource, - /** @deprecated */ InputFiles, // JSDoc nodes JSDocTypeExpression, @@ -4382,7 +4380,6 @@ export type ExportedModulesFromDeclarationEmit = readonly Symbol[]; export interface Bundle extends Node { readonly kind: SyntaxKind.Bundle; - /** @deprecated */ readonly prepends: readonly (InputFiles | UnparsedSource)[]; readonly sourceFiles: readonly SourceFile[]; /** @internal */ syntheticFileReferences?: readonly FileReference[]; /** @internal */ syntheticTypeReferences?: readonly FileReference[]; @@ -4390,93 +4387,6 @@ export interface Bundle extends Node { /** @internal */ hasNoDefaultLib?: boolean; } -/** @deprecated */ -export interface InputFiles extends Node { - readonly kind: SyntaxKind.InputFiles; - javascriptPath?: string; - javascriptText: string; - javascriptMapPath?: string; - javascriptMapText?: string; - declarationPath?: string; - declarationText: string; - declarationMapPath?: string; - declarationMapText?: string; - /** @internal */ buildInfoPath?: string; - /** @internal */ buildInfo?: BuildInfo; - /** @internal */ oldFileOfCurrentEmit?: boolean; -} - -/** @deprecated */ -export interface UnparsedSource extends Node { - readonly kind: SyntaxKind.UnparsedSource; - fileName: string; - text: string; - readonly prologues: readonly UnparsedPrologue[]; - helpers: readonly UnscopedEmitHelper[] | undefined; - - // References and noDefaultLibAre Dts only - referencedFiles: readonly FileReference[]; - typeReferenceDirectives: readonly FileReference[] | undefined; - libReferenceDirectives: readonly FileReference[]; - hasNoDefaultLib?: boolean; - - sourceMapPath?: string; - sourceMapText?: string; - readonly syntheticReferences?: readonly UnparsedSyntheticReference[]; - readonly texts: readonly UnparsedSourceText[]; - /** @internal */ oldFileOfCurrentEmit?: boolean; - /** @internal */ parsedSourceMap?: RawSourceMap | false | undefined; - // Adding this to satisfy services, fix later - /** @internal */ - getLineAndCharacterOfPosition(pos: number): LineAndCharacter; -} - -/** @deprecated */ -export type UnparsedSourceText = - | UnparsedPrepend - | UnparsedTextLike; - -/** @deprecated */ -export type UnparsedNode = - | UnparsedPrologue - | UnparsedSourceText - | UnparsedSyntheticReference; - -/** @deprecated */ -export interface UnparsedSection extends Node { - readonly kind: SyntaxKind; - readonly parent: UnparsedSource; - readonly data?: string; -} - -/** @deprecated */ -export interface UnparsedPrologue extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedPrologue; - readonly parent: UnparsedSource; - readonly data: string; -} - -/** @deprecated */ -export interface UnparsedPrepend extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedPrepend; - readonly parent: UnparsedSource; - readonly data: string; - readonly texts: readonly UnparsedTextLike[]; -} - -/** @deprecated */ -export interface UnparsedTextLike extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedText | SyntaxKind.UnparsedInternalText; - readonly parent: UnparsedSource; -} - -/** @deprecated */ -export interface UnparsedSyntheticReference extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedSyntheticReference; - readonly parent: UnparsedSource; - /** @internal */ readonly section: BundleFileHasNoDefaultLib | BundleFileReference; -} - export interface JsonSourceFile extends SourceFile { readonly statements: NodeArray; } @@ -4783,7 +4693,7 @@ export interface Program extends ScriptReferenceHost { // This is set on created program to let us know how the program was created using old program /** @internal */ readonly structureIsReused: StructureIsReused; - /** @internal */ getSourceFileFromReference(referencingFile: SourceFile | UnparsedSource, ref: FileReference): SourceFile | undefined; + /** @internal */ getSourceFileFromReference(referencingFile: SourceFile, ref: FileReference): SourceFile | undefined; /** @internal */ getLibFileFromReference(ref: FileReference): SourceFile | undefined; /** @@ -4827,7 +4737,7 @@ export interface Program extends ScriptReferenceHost { /** @internal */ forEachResolvedProjectReference(cb: (resolvedProjectReference: ResolvedProjectReference) => T | undefined): T | undefined; /** @internal */ getResolvedProjectReferenceByPath(projectReferencePath: Path): ResolvedProjectReference | undefined; /** @internal */ isSourceOfProjectReferenceRedirect(fileName: string): boolean; - /** @internal */ getBuildInfo?(bundle: BundleBuildInfo | undefined): BuildInfo; + /** @internal */ getBuildInfo?(): BuildInfo; /** @internal */ emitBuildInfo(writeFile?: WriteFileCallback, cancellationToken?: CancellationToken): EmitResult; /** * This implementation handles file exists to be true if file is source of project reference redirect when program is created using useSourceOfProjectReferenceRedirect @@ -8212,10 +8122,8 @@ export interface EmitHost extends ScriptReferenceHost, ModuleSpecifierResolution isEmitBlocked(emitFileName: string): boolean; - /** @deprecated */ getPrependNodes(): readonly (InputFiles | UnparsedSource)[]; - writeFile: WriteFileCallback; - getBuildInfo(bundle: BundleBuildInfo | undefined): BuildInfo | undefined; + getBuildInfo(): BuildInfo | undefined; getSourceFileFromReference: Program["getSourceFileFromReference"]; readonly redirectTargetsMap: RedirectTargetsMap; createHash?(data: string): string; @@ -8882,13 +8790,6 @@ export interface NodeFactory { /** @internal */ createRedirectedSourceFile(redirectInfo: RedirectInfo): SourceFile; - /** @deprecated @internal */ createUnparsedSource(prologues: readonly UnparsedPrologue[], syntheticReferences: readonly UnparsedSyntheticReference[] | undefined, texts: readonly UnparsedSourceText[]): UnparsedSource; - /** @deprecated @internal */ createUnparsedPrologue(data?: string): UnparsedPrologue; - /** @deprecated @internal */ createUnparsedPrepend(data: string | undefined, texts: readonly UnparsedSourceText[]): UnparsedPrepend; - /** @deprecated @internal */ createUnparsedTextLike(data: string | undefined, internal: boolean): UnparsedTextLike; - /** @deprecated @internal */ createUnparsedSyntheticReference(section: BundleFileHasNoDefaultLib | BundleFileReference): UnparsedSyntheticReference; - /** @deprecated @internal */ createInputFiles(): InputFiles; - // // Synthetic Nodes // @@ -8907,9 +8808,7 @@ export interface NodeFactory { createCommaListExpression(elements: readonly Expression[]): CommaListExpression; updateCommaListExpression(node: CommaListExpression, elements: readonly Expression[]): CommaListExpression; createBundle(sourceFiles: readonly SourceFile[]): Bundle; - /** @deprecated*/ createBundle(sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle; // eslint-disable-line @typescript-eslint/unified-signatures updateBundle(node: Bundle, sourceFiles: readonly SourceFile[]): Bundle; - /** @deprecated*/ updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle; // eslint-disable-line @typescript-eslint/unified-signatures // // Common operators @@ -9387,122 +9286,10 @@ export interface Printer { /** @internal */ writeList(format: ListFormat, list: NodeArray | undefined, sourceFile: SourceFile | undefined, writer: EmitTextWriter): void; /** @internal */ writeFile(sourceFile: SourceFile, writer: EmitTextWriter, sourceMapGenerator: SourceMapGenerator | undefined): void; /** @internal */ writeBundle(bundle: Bundle, writer: EmitTextWriter, sourceMapGenerator: SourceMapGenerator | undefined): void; - /** @deprecated @internal */ bundleFileInfo?: BundleFileInfo; -} - -/** @deprecated @internal */ -export const enum BundleFileSectionKind { - Prologue = "prologue", - EmitHelpers = "emitHelpers", - NoDefaultLib = "no-default-lib", - Reference = "reference", - Type = "type", - TypeResolutionModeRequire = "type-require", - TypeResolutionModeImport = "type-import", - Lib = "lib", - Prepend = "prepend", - Text = "text", - Internal = "internal", - // comments? -} - -/** @deprecated @internal */ -export interface BundleFileSectionBase extends TextRange { - kind: BundleFileSectionKind; - data?: string; -} - -/** @deprecated @internal */ -export interface BundleFilePrologue extends BundleFileSectionBase { - kind: BundleFileSectionKind.Prologue; - data: string; -} - -/** @deprecated @internal */ -export interface BundleFileEmitHelpers extends BundleFileSectionBase { - kind: BundleFileSectionKind.EmitHelpers; - data: string; -} - -/** @deprecated @internal */ -export interface BundleFileHasNoDefaultLib extends BundleFileSectionBase { - kind: BundleFileSectionKind.NoDefaultLib; -} - -/** @deprecated @internal */ -export interface BundleFileReference extends BundleFileSectionBase { - kind: BundleFileSectionKind.Reference | BundleFileSectionKind.Type | BundleFileSectionKind.Lib | BundleFileSectionKind.TypeResolutionModeImport | BundleFileSectionKind.TypeResolutionModeRequire; - data: string; -} - -/** @deprecated @internal */ -export interface BundleFilePrepend extends BundleFileSectionBase { - kind: BundleFileSectionKind.Prepend; - data: string; - texts: BundleFileTextLike[]; -} - -/** @deprecated @internal */ -export type BundleFileTextLikeKind = BundleFileSectionKind.Text | BundleFileSectionKind.Internal; - -/** @deprecated @internal */ -export interface BundleFileTextLike extends BundleFileSectionBase { - kind: BundleFileTextLikeKind; -} - -/** @deprecated @internal */ -export type BundleFileSection = - | BundleFilePrologue - | BundleFileEmitHelpers - | BundleFileHasNoDefaultLib - | BundleFileReference - | BundleFilePrepend - | BundleFileTextLike; - -/** @deprecated @internal */ -export interface SourceFilePrologueDirectiveExpression extends TextRange { - text: string; -} - -/** @deprecated @internal */ -export interface SourceFilePrologueDirective extends TextRange { - expression: SourceFilePrologueDirectiveExpression; -} - -/** @deprecated @internal */ -export interface SourceFilePrologueInfo { - file: number; - text: string; - directives: SourceFilePrologueDirective[]; -} - -/** @deprecated @internal */ -export interface SourceFileInfo { - // List of helpers in own source files emitted if no prepend is present - helpers?: string[]; - prologues?: SourceFilePrologueInfo[]; -} - -/** @deprecated @internal */ -export interface BundleFileInfo { - sections: BundleFileSection[]; - hash?: string; - mapHash?: string; - sources?: SourceFileInfo; -} - -/** @deprecated @internal */ -export interface BundleBuildInfo { - js?: BundleFileInfo; - dts?: BundleFileInfo; - commonSourceDirectory: string; - sourceFiles: readonly string[]; } /** @internal */ export interface BuildInfo { - /** @deprecated */ - bundle?: BundleBuildInfo; program?: ProgramBuildInfo; version: string; } @@ -9581,12 +9368,9 @@ export interface PrinterOptions { /** @internal */ extendedDiagnostics?: boolean; /** @internal */ onlyPrintJsDocStyle?: boolean; /** @internal */ neverAsciiEscape?: boolean; - /** @deprecated @internal */ writeBundleFileInfo?: boolean; - /** @internal */ recordInternalSection?: boolean; /** @internal */ stripInternal?: boolean; /** @internal */ preserveSourceNewlines?: boolean; /** @internal */ terminateUnterminatedLiterals?: boolean; - /** @internal */ relativeToBuildInfo?: (path: string) => string; } /** @internal */ @@ -9679,7 +9463,6 @@ export interface EmitTextWriter extends SymbolWriter { isAtStartOfLine(): boolean; hasTrailingComment(): boolean; hasTrailingWhitespace(): boolean; - getTextPosWithWriteLine?(): number; nonEscapingWrite?(text: string): void; } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 6b3b2aed34994..f6a0d103baa46 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -34,9 +34,6 @@ import { BindingElement, BindingElementOfBareOrAccessedRequire, Block, - BundleFileSection, - BundleFileSectionKind, - BundleFileTextLike, CallExpression, CallLikeExpression, CallSignatureDeclaration, @@ -6082,10 +6079,6 @@ export function createTextWriter(newLine: string): EmitTextWriter { } } - function getTextPosWithWriteLine() { - return lineStart ? output.length : (output.length + newLine.length); - } - reset(); return { @@ -6118,7 +6111,6 @@ export function createTextWriter(newLine: string): EmitTextWriter { writeSymbol: (s, _) => write(s), writeTrailingSemicolon: write, writeComment, - getTextPosWithWriteLine, }; } @@ -8059,17 +8051,6 @@ export function getNameOfAccessExpression(node: AccessExpression) { return node.argumentExpression; } -/** @deprecated @internal */ -export function isBundleFileTextLike(section: BundleFileSection): section is BundleFileTextLike { - switch (section.kind) { - case BundleFileSectionKind.Text: - case BundleFileSectionKind.Internal: - return true; - default: - return false; - } -} - /** @internal */ export function isNamedImportsOrExports(node: Node): node is NamedImportsOrExports { return node.kind === SyntaxKind.NamedImports || node.kind === SyntaxKind.NamedExports; diff --git a/src/compiler/utilitiesPublic.ts b/src/compiler/utilitiesPublic.ts index 6392455c75a25..328e1b2f0e55c 100644 --- a/src/compiler/utilitiesPublic.ts +++ b/src/compiler/utilitiesPublic.ts @@ -293,8 +293,6 @@ import { TypeParameterDeclaration, TypeReferenceType, UnaryExpression, - UnparsedNode, - UnparsedTextLike, VariableDeclaration, } from "./_namespaces/ts"; @@ -1397,24 +1395,6 @@ export function isNamedExportBindings(node: Node): node is NamedExportBindings { return node.kind === SyntaxKind.NamespaceExport || node.kind === SyntaxKind.NamedExports; } -/** @deprecated */ -export function isUnparsedTextLike(node: Node): node is UnparsedTextLike { - switch (node.kind) { - case SyntaxKind.UnparsedText: - case SyntaxKind.UnparsedInternalText: - return true; - default: - return false; - } -} - -/** @deprecated */ -export function isUnparsedNode(node: Node): node is UnparsedNode { - return isUnparsedTextLike(node) || - node.kind === SyntaxKind.UnparsedPrologue || - node.kind === SyntaxKind.UnparsedSyntheticReference; -} - export function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag { return node.kind === SyntaxKind.JSDocPropertyTag || node.kind === SyntaxKind.JSDocParameterTag; } diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index 94b99fb631658..16d02310b5eb7 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -962,11 +962,6 @@ function updateSolutionBuilderHost( reportStatistics(sys, program.getProgram(), solutionPerformance); cb(program); }; - buildHost.beforeEmitBundle = config => enableStatisticsAndTracing(sys, config.options, /*isBuildMode*/ true); - buildHost.afterEmitBundle = config => { - reportStatistics(sys, config, solutionPerformance); - cb(config); - }; } function updateCreateProgram(sys: System, host: { createProgram: CreateProgram; }, isBuildMode: boolean) { @@ -1148,14 +1143,8 @@ function isSolutionMarkOrMeasure(name: string) { return startsWith(name, "SolutionBuilder::"); } -function isProgram(programOrConfig: Program | ParsedCommandLine): programOrConfig is Program { - return !(programOrConfig as ParsedCommandLine).options; -} - -function reportStatistics(sys: System, programOrConfig: Program | ParsedCommandLine, solutionPerformance: SolutionPerformance | undefined) { - const program = isProgram(programOrConfig) ? programOrConfig : undefined; - const config = isProgram(programOrConfig) ? undefined : programOrConfig; - const compilerOptions = program ? program.getCompilerOptions() : config!.options; +function reportStatistics(sys: System, program: Program, solutionPerformance: SolutionPerformance | undefined) { + const compilerOptions = program.getCompilerOptions(); if (canTrace(sys, compilerOptions)) { tracing?.stopTracing(); @@ -1165,24 +1154,22 @@ function reportStatistics(sys: System, programOrConfig: Program | ParsedCommandL if (canReportDiagnostics(sys, compilerOptions)) { statistics = []; const memoryUsed = sys.getMemoryUsage ? sys.getMemoryUsage() : -1; - if (program) { - reportCountStatistic("Files", program.getSourceFiles().length); - - const lineCounts = countLines(program); - if (compilerOptions.extendedDiagnostics) { - for (const [key, value] of lineCounts.entries()) { - reportCountStatistic("Lines of " + key, value); - } - } - else { - reportCountStatistic("Lines", reduceLeftIterator(lineCounts.values(), (sum, count) => sum + count, 0)); - } + reportCountStatistic("Files", program.getSourceFiles().length); - reportCountStatistic("Identifiers", program.getIdentifierCount()); - reportCountStatistic("Symbols", program.getSymbolCount()); - reportCountStatistic("Types", program.getTypeCount()); - reportCountStatistic("Instantiations", program.getInstantiationCount()); + const lineCounts = countLines(program); + if (compilerOptions.extendedDiagnostics) { + for (const [key, value] of lineCounts.entries()) { + reportCountStatistic("Lines of " + key, value); + } + } + else { + reportCountStatistic("Lines", reduceLeftIterator(lineCounts.values(), (sum, count) => sum + count, 0)); } + + reportCountStatistic("Identifiers", program.getIdentifierCount()); + reportCountStatistic("Symbols", program.getSymbolCount()); + reportCountStatistic("Types", program.getTypeCount()); + reportCountStatistic("Instantiations", program.getInstantiationCount()); if (memoryUsed >= 0) { reportStatisticalValue({ name: "Memory used", value: memoryUsed, type: StatisticType.memory }, /*aggregate*/ true); } @@ -1193,13 +1180,11 @@ function reportStatistics(sys: System, programOrConfig: Program | ParsedCommandL const checkTime = isPerformanceEnabled ? performance.getDuration("Check") : 0; const emitTime = isPerformanceEnabled ? performance.getDuration("Emit") : 0; if (compilerOptions.extendedDiagnostics) { - if (program) { - const caches = program.getRelationCacheSizes(); - reportCountStatistic("Assignability cache size", caches.assignable); - reportCountStatistic("Identity cache size", caches.identity); - reportCountStatistic("Subtype cache size", caches.subtype); - reportCountStatistic("Strict subtype cache size", caches.strictSubtype); - } + const caches = program.getRelationCacheSizes(); + reportCountStatistic("Assignability cache size", caches.assignable); + reportCountStatistic("Identity cache size", caches.identity); + reportCountStatistic("Subtype cache size", caches.subtype); + reportCountStatistic("Strict subtype cache size", caches.strictSubtype); if (isPerformanceEnabled) { performance.forEachMeasure((name, duration) => { if (!isSolutionMarkOrMeasure(name)) reportTimeStatistic(`${name} time`, duration, /*aggregate*/ true); diff --git a/src/testRunner/unittests/customTransforms.ts b/src/testRunner/unittests/customTransforms.ts index 19d9d44562c7c..2af7834ccf72b 100644 --- a/src/testRunner/unittests/customTransforms.ts +++ b/src/testRunner/unittests/customTransforms.ts @@ -159,7 +159,7 @@ describe("unittests:: customTransforms", () => { }, ts.isSourceFile); return { transformSourceFile, - transformBundle: node => ts.factory.createBundle(ts.map(node.sourceFiles, transformSourceFile), node.prepends), + transformBundle: node => ts.factory.createBundle(ts.map(node.sourceFiles, transformSourceFile)), }; }, ], diff --git a/src/testRunner/unittests/helpers/baseline.ts b/src/testRunner/unittests/helpers/baseline.ts index c0b64a68d897a..f49e4b59f62cd 100644 --- a/src/testRunner/unittests/helpers/baseline.ts +++ b/src/testRunner/unittests/helpers/baseline.ts @@ -130,45 +130,6 @@ export function generateSourceMapBaselineFiles(sys: ts.System & { writtenFiles: } } -function generateBundleFileSectionInfo(sys: ts.System, originalReadCall: ts.System["readFile"], baselineRecorder: Harness.Compiler.WriterAggregator, bundleFileInfo: ts.BundleFileInfo | undefined, outFile: string | undefined) { - if (!ts.length(bundleFileInfo && bundleFileInfo.sections) && !outFile) return; // Nothing to baseline - - const content = outFile && sys.fileExists(outFile) ? originalReadCall.call(sys, outFile, "utf8")! : ""; - baselineRecorder.WriteLine("======================================================================"); - baselineRecorder.WriteLine(`File:: ${outFile}`); - for (const section of bundleFileInfo ? bundleFileInfo.sections : ts.emptyArray) { - baselineRecorder.WriteLine("----------------------------------------------------------------------"); - writeSectionHeader(section); - if (section.kind !== ts.BundleFileSectionKind.Prepend) { - writeTextOfSection(section.pos, section.end); - } - else if (section.texts.length > 0) { - ts.Debug.assert(section.pos === ts.first(section.texts).pos); - ts.Debug.assert(section.end === ts.last(section.texts).end); - for (const text of section.texts) { - baselineRecorder.WriteLine(">>--------------------------------------------------------------------"); - writeSectionHeader(text); - writeTextOfSection(text.pos, text.end); - } - } - else { - ts.Debug.assert(section.pos === section.end); - } - } - baselineRecorder.WriteLine("======================================================================"); - - function writeTextOfSection(pos: number, end: number) { - const textLines = content.substring(pos, end).split(/\r?\n/); - for (const line of textLines) { - baselineRecorder.WriteLine(line); - } - } - - function writeSectionHeader(section: ts.BundleFileSection) { - baselineRecorder.WriteLine(`${section.kind}: (${section.pos}-${section.end})${section.data ? ":: " + section.data : ""}${section.kind === ts.BundleFileSectionKind.Prepend ? " texts:: " + section.texts.length : ""}`); - } -} - export type ReadableProgramBuildInfoDiagnostic = string | [string, readonly ts.ReusableDiagnostic[]]; export type ReadableBuilderFileEmit = string & { __readableBuilderFileEmit: any; }; export type ReadableProgramBuilderInfoFilePendingEmit = [original: string | [string], emitKind: ReadableBuilderFileEmit]; @@ -255,22 +216,6 @@ function generateBuildInfoProgramBaseline(sys: ts.System, buildInfoPath: string, } const version = buildInfo.version === ts.version ? fakes.version : buildInfo.version; const result: ReadableBuildInfo = { - // Baseline fixed order for bundle - bundle: buildInfo.bundle && { - ...buildInfo.bundle, - js: buildInfo.bundle.js && { - sections: buildInfo.bundle.js.sections, - hash: buildInfo.bundle.js.hash, - mapHash: buildInfo.bundle.js.mapHash, - sources: buildInfo.bundle.js.sources, - }, - dts: buildInfo.bundle.dts && { - sections: buildInfo.bundle.dts.sections, - hash: buildInfo.bundle.dts.hash, - mapHash: buildInfo.bundle.dts.mapHash, - sources: buildInfo.bundle.dts.sources, - }, - }, program, version, size: ts.getBuildInfoText({ ...buildInfo, version }).length, @@ -358,19 +303,6 @@ export function baselineBuildInfo( const buildInfo = ts.getBuildInfo(buildInfoPath, (originalReadCall || sys.readFile).call(sys, buildInfoPath, "utf8")); if (!buildInfo) return sys.writeFile(`${buildInfoPath}.baseline.txt`, "Error reading valid buildinfo file"); generateBuildInfoProgramBaseline(sys, buildInfoPath, buildInfo); - - if (!ts.outFile(options)) return; - const { jsFilePath, declarationFilePath } = ts.getOutputPathsForBundle(options, /*forceDtsPaths*/ false); - const bundle = buildInfo.bundle; - if (!bundle || (!ts.length(bundle.js && bundle.js.sections) && !ts.length(bundle.dts && bundle.dts.sections))) return; - - // Write the baselines: - const baselineRecorder = new Harness.Compiler.WriterAggregator(); - generateBundleFileSectionInfo(sys, originalReadCall || sys.readFile, baselineRecorder, bundle.js, jsFilePath); - generateBundleFileSectionInfo(sys, originalReadCall || sys.readFile, baselineRecorder, bundle.dts, declarationFilePath); - baselineRecorder.Close(); - const text = baselineRecorder.lines.join("\r\n"); - sys.writeFile(`${buildInfoPath}.baseline.txt`, text); } export function tscBaselineName(scenario: string, subScenario: string, commandLineArgs: readonly string[], isWatch?: boolean, suffix?: string) { diff --git a/src/testRunner/unittests/helpers/solutionBuilder.ts b/src/testRunner/unittests/helpers/solutionBuilder.ts index f47871c8c35ca..f11cbb9569312 100644 --- a/src/testRunner/unittests/helpers/solutionBuilder.ts +++ b/src/testRunner/unittests/helpers/solutionBuilder.ts @@ -24,7 +24,6 @@ export function createSolutionBuilderHostForBaseline( const { cb } = commandLineCallbacks(sys, originalRead); const host = ts.createSolutionBuilderHost(sys, /*createProgram*/ undefined, ts.createDiagnosticReporter(sys, /*pretty*/ true), ts.createBuilderStatusReporter(sys, /*pretty*/ true)); host.afterProgramEmitAndDiagnostics = cb; - host.afterEmitBundle = cb; return host; } diff --git a/src/testRunner/unittests/helpers/tscWatch.ts b/src/testRunner/unittests/helpers/tscWatch.ts index a16b2bd8d93a5..554c3fc37b0f3 100644 --- a/src/testRunner/unittests/helpers/tscWatch.ts +++ b/src/testRunner/unittests/helpers/tscWatch.ts @@ -138,7 +138,6 @@ export function createBaseline(system: TestServerHost, modifySystem?: (sys: Test export function createSolutionBuilderWithWatchHostForBaseline(sys: TestServerHost, cb: ts.ExecuteCommandLineCallbacks) { const host = ts.createSolutionBuilderWithWatchHost(sys, /*createProgram*/ undefined, ts.createDiagnosticReporter(sys, /*pretty*/ true), ts.createBuilderStatusReporter(sys, /*pretty*/ true), ts.createWatchStatusReporter(sys, /*pretty*/ true)); host.afterProgramEmitAndDiagnostics = cb; - host.afterEmitBundle = cb; return host; } diff --git a/src/testRunner/unittests/tsbuild/publicApi.ts b/src/testRunner/unittests/tsbuild/publicApi.ts index 7c7f91bac2359..09152ce36e09b 100644 --- a/src/testRunner/unittests/tsbuild/publicApi.ts +++ b/src/testRunner/unittests/tsbuild/publicApi.ts @@ -73,7 +73,6 @@ export function f22() { } // trailing`, (errorCount, filesInError) => sys.write(ts.getErrorSummaryText(errorCount, filesInError, sys.newLine, sys)), ); buildHost.afterProgramEmitAndDiagnostics = cb; - buildHost.afterEmitBundle = cb; const builder = ts.createSolutionBuilder(buildHost, [commandLineArgs[1]], { verbose: true }); const exitStatus = builder.build(/*project*/ undefined, /*cancellationToken*/ undefined, /*writeFile*/ undefined, getCustomTransformers); sys.exit(exitStatus); diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index bf2b10738827f..349daa92751cb 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -4485,58 +4485,56 @@ declare namespace ts { /** @deprecated */ UnparsedSyntheticReference = 311, SourceFile = 312, Bundle = 313, - /** @deprecated */ UnparsedSource = 314, - /** @deprecated */ InputFiles = 315, - JSDocTypeExpression = 316, - JSDocNameReference = 317, - JSDocMemberName = 318, - JSDocAllType = 319, - JSDocUnknownType = 320, - JSDocNullableType = 321, - JSDocNonNullableType = 322, - JSDocOptionalType = 323, - JSDocFunctionType = 324, - JSDocVariadicType = 325, - JSDocNamepathType = 326, - JSDoc = 327, + JSDocTypeExpression = 314, + JSDocNameReference = 315, + JSDocMemberName = 316, + JSDocAllType = 317, + JSDocUnknownType = 318, + JSDocNullableType = 319, + JSDocNonNullableType = 320, + JSDocOptionalType = 321, + JSDocFunctionType = 322, + JSDocVariadicType = 323, + JSDocNamepathType = 324, + JSDoc = 325, /** @deprecated Use SyntaxKind.JSDoc */ - JSDocComment = 327, - JSDocText = 328, - JSDocTypeLiteral = 329, - JSDocSignature = 330, - JSDocLink = 331, - JSDocLinkCode = 332, - JSDocLinkPlain = 333, - JSDocTag = 334, - JSDocAugmentsTag = 335, - JSDocImplementsTag = 336, - JSDocAuthorTag = 337, - JSDocDeprecatedTag = 338, - JSDocClassTag = 339, - JSDocPublicTag = 340, - JSDocPrivateTag = 341, - JSDocProtectedTag = 342, - JSDocReadonlyTag = 343, - JSDocOverrideTag = 344, - JSDocCallbackTag = 345, - JSDocOverloadTag = 346, - JSDocEnumTag = 347, - JSDocParameterTag = 348, - JSDocReturnTag = 349, - JSDocThisTag = 350, - JSDocTypeTag = 351, - JSDocTemplateTag = 352, - JSDocTypedefTag = 353, - JSDocSeeTag = 354, - JSDocPropertyTag = 355, - JSDocThrowsTag = 356, - JSDocSatisfiesTag = 357, - SyntaxList = 358, - NotEmittedStatement = 359, - PartiallyEmittedExpression = 360, - CommaListExpression = 361, - SyntheticReferenceExpression = 362, - Count = 363, + JSDocComment = 325, + JSDocText = 326, + JSDocTypeLiteral = 327, + JSDocSignature = 328, + JSDocLink = 329, + JSDocLinkCode = 330, + JSDocLinkPlain = 331, + JSDocTag = 332, + JSDocAugmentsTag = 333, + JSDocImplementsTag = 334, + JSDocAuthorTag = 335, + JSDocDeprecatedTag = 336, + JSDocClassTag = 337, + JSDocPublicTag = 338, + JSDocPrivateTag = 339, + JSDocProtectedTag = 340, + JSDocReadonlyTag = 341, + JSDocOverrideTag = 342, + JSDocCallbackTag = 343, + JSDocOverloadTag = 344, + JSDocEnumTag = 345, + JSDocParameterTag = 346, + JSDocReturnTag = 347, + JSDocThisTag = 348, + JSDocTypeTag = 349, + JSDocTemplateTag = 350, + JSDocTypedefTag = 351, + JSDocSeeTag = 352, + JSDocPropertyTag = 353, + JSDocThrowsTag = 354, + JSDocSatisfiesTag = 355, + SyntaxList = 356, + NotEmittedStatement = 357, + PartiallyEmittedExpression = 358, + CommaListExpression = 359, + SyntheticReferenceExpression = 360, + Count = 361, FirstAssignment = 64, LastAssignment = 79, FirstCompoundAssignment = 65, @@ -4564,10 +4562,10 @@ declare namespace ts { FirstStatement = 243, LastStatement = 259, FirstNode = 166, - FirstJSDocNode = 316, - LastJSDocNode = 357, - FirstJSDocTagNode = 334, - LastJSDocTagNode = 357, + FirstJSDocNode = 314, + LastJSDocNode = 355, + FirstJSDocTagNode = 332, + LastJSDocTagNode = 355, } type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia; type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; @@ -6498,70 +6496,8 @@ declare namespace ts { } interface Bundle extends Node { readonly kind: SyntaxKind.Bundle; - /** @deprecated */ readonly prepends: readonly (InputFiles | UnparsedSource)[]; readonly sourceFiles: readonly SourceFile[]; } - /** @deprecated */ - interface InputFiles extends Node { - readonly kind: SyntaxKind.InputFiles; - javascriptPath?: string; - javascriptText: string; - javascriptMapPath?: string; - javascriptMapText?: string; - declarationPath?: string; - declarationText: string; - declarationMapPath?: string; - declarationMapText?: string; - } - /** @deprecated */ - interface UnparsedSource extends Node { - readonly kind: SyntaxKind.UnparsedSource; - fileName: string; - text: string; - readonly prologues: readonly UnparsedPrologue[]; - helpers: readonly UnscopedEmitHelper[] | undefined; - referencedFiles: readonly FileReference[]; - typeReferenceDirectives: readonly FileReference[] | undefined; - libReferenceDirectives: readonly FileReference[]; - hasNoDefaultLib?: boolean; - sourceMapPath?: string; - sourceMapText?: string; - readonly syntheticReferences?: readonly UnparsedSyntheticReference[]; - readonly texts: readonly UnparsedSourceText[]; - } - /** @deprecated */ - type UnparsedSourceText = UnparsedPrepend | UnparsedTextLike; - /** @deprecated */ - type UnparsedNode = UnparsedPrologue | UnparsedSourceText | UnparsedSyntheticReference; - /** @deprecated */ - interface UnparsedSection extends Node { - readonly kind: SyntaxKind; - readonly parent: UnparsedSource; - readonly data?: string; - } - /** @deprecated */ - interface UnparsedPrologue extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedPrologue; - readonly parent: UnparsedSource; - readonly data: string; - } - /** @deprecated */ - interface UnparsedPrepend extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedPrepend; - readonly parent: UnparsedSource; - readonly data: string; - readonly texts: readonly UnparsedTextLike[]; - } - /** @deprecated */ - interface UnparsedTextLike extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedText | SyntaxKind.UnparsedInternalText; - readonly parent: UnparsedSource; - } - /** @deprecated */ - interface UnparsedSyntheticReference extends UnparsedSection { - readonly kind: SyntaxKind.UnparsedSyntheticReference; - readonly parent: UnparsedSource; - } interface JsonSourceFile extends SourceFile { readonly statements: NodeArray; } @@ -8389,9 +8325,7 @@ declare namespace ts { createCommaListExpression(elements: readonly Expression[]): CommaListExpression; updateCommaListExpression(node: CommaListExpression, elements: readonly Expression[]): CommaListExpression; createBundle(sourceFiles: readonly SourceFile[]): Bundle; - /** @deprecated*/ createBundle(sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle; updateBundle(node: Bundle, sourceFiles: readonly SourceFile[]): Bundle; - /** @deprecated*/ updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle; createComma(left: Expression, right: Expression): BinaryExpression; createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment; createAssignment(left: Expression, right: Expression): AssignmentExpression; @@ -9150,10 +9084,6 @@ declare namespace ts { function isNonNullChain(node: Node): node is NonNullChain; function isBreakOrContinueStatement(node: Node): node is BreakOrContinueStatement; function isNamedExportBindings(node: Node): node is NamedExportBindings; - /** @deprecated */ - function isUnparsedTextLike(node: Node): node is UnparsedTextLike; - /** @deprecated */ - function isUnparsedNode(node: Node): node is UnparsedNode; function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag; /** * True if kind is of some token syntax kind. @@ -9261,18 +9191,6 @@ declare namespace ts { * ``` */ function getJSDocCommentsAndTags(hostNode: Node): readonly (JSDoc | JSDocTag)[]; - /** @deprecated */ - function createUnparsedSourceFile(text: string): UnparsedSource; - /** @deprecated */ - function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource; - /** @deprecated */ - function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource; - /** @deprecated */ - function createInputFiles(javascriptText: string, declarationText: string): InputFiles; - /** @deprecated */ - function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles; - /** @deprecated */ - function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles; /** * Create an external source map source file reference */ @@ -9517,12 +9435,8 @@ declare namespace ts { function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment; function isSpreadAssignment(node: Node): node is SpreadAssignment; function isEnumMember(node: Node): node is EnumMember; - /** @deprecated */ - function isUnparsedPrepend(node: Node): node is UnparsedPrepend; function isSourceFile(node: Node): node is SourceFile; function isBundle(node: Node): node is Bundle; - /** @deprecated */ - function isUnparsedSource(node: Node): node is UnparsedSource; function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression; function isJSDocNameReference(node: Node): node is JSDocNameReference; function isJSDocMemberName(node: Node): node is JSDocMemberName; @@ -10341,8 +10255,7 @@ declare namespace ts { } enum InvalidatedProjectKind { Build = 0, - /** @deprecated */ UpdateBundle = 1, - UpdateOutputFileStamps = 2, + UpdateOutputFileStamps = 1, } interface InvalidatedProjectBase { readonly kind: InvalidatedProjectKind; @@ -10373,12 +10286,7 @@ declare namespace ts { getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?: (sourceFile: SourceFile) => boolean): AffectedFileResult; emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined; } - /** @deprecated */ - interface UpdateBundleProject extends InvalidatedProjectBase { - readonly kind: InvalidatedProjectKind.UpdateBundle; - emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject | undefined; - } - type InvalidatedProject = UpdateOutputFileStampsProject | BuildInvalidedProject | UpdateBundleProject; + type InvalidatedProject = UpdateOutputFileStampsProject | BuildInvalidedProject; namespace JsTyping { interface TypingResolutionHost { directoryExists(path: string): boolean; From 101210470a27528200311970da58d1caa6486575 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Feb 2024 11:19:39 -0800 Subject: [PATCH 2/7] Tests --- .../unittests/tsbuild/amdModulesWithOut.ts | 212 +- .../tsbuild/javascriptProjectEmit.ts | 99 - src/testRunner/unittests/tsbuild/outFile.ts | 619 +- .../unittests/tsbuildWatch/programUpdates.ts | 6 +- .../unittests/tsc/projectReferencesConfig.ts | 32 - .../unittests/tscWatch/programUpdates.ts | 33 +- .../events/projectUpdatedInBackground.ts | 3 +- .../unittests/tsserver/projectReferences.ts | 15 +- .../modules-and-globals-mixed-in-amd.js | 383 +- .../multiple-emitHelpers-in-all-projects.js | 2225 ----- .../multiple-prologues-in-all-projects.js | 1657 ---- .../prepend-reports-deprecation-error.js | 184 +- .../shebang-in-all-projects.js | 834 -- .../amdModulesWithOut/stripInternal.js | 7454 ----------------- .../triple-slash-refs-in-all-projects.js | 959 --- ...e-resolution-finds-original-source-file.js | 284 +- ...-incremental-with-outFile-discrepancies.js | 270 +- ...t-options-with-incremental-with-outFile.js | 633 +- ...rent-options-with-outFile-discrepancies.js | 235 - .../different-options-with-outFile.js | 439 +- ...-incremental-with-outFile-discrepancies.js | 122 +- ...eclaration-and-incremental-with-outFile.js | 298 +- ...-commandline-with-outFile-discrepancies.js | 225 +- ...nOnly-false-on-commandline-with-outFile.js | 404 +- ...-incremental-with-outFile-discrepancies.js | 125 +- ...eclaration-and-incremental-with-outFile.js | 561 +- ...-commandline-with-outFile-discrepancies.js | 331 +- ...arationOnly-on-commandline-with-outFile.js | 804 +- ...-dts-generation-errors-with-incremental.js | 219 - .../detects-deleted-file-with-outFile.js | 138 +- ...rojects-and-concatenates-them-correctly.js | 256 - .../baseline-sectioned-sourcemaps.js} | 632 +- .../outFile/builds-till-project-specified.js | 77 +- .../tsbuild/outFile/clean-projects.js | 201 +- .../outFile/cleans-till-project-specified.js | 196 +- .../non-module-projects-without-prepend.js | 22 +- ...al-flag-changes-between-non-dts-changes.js | 434 +- ...-in-tsbuildinfo-doesnt-match-ts-version.js | 349 +- ...erated-when-incremental-is-set-to-false.js | 189 +- ...-buildInfo-absence-results-in-new-build.js | 237 +- ...roject-is-not-composite-but-incremental.js | 323 +- ...t-composite-but-uses-project-references.js | 386 +- ...final-project-specifies-tsBuildInfoFile.js | 327 +- ...ot-change-but-its-modified-time-changes.js | 271 +- .../baseline-sectioned-sourcemaps.js | 1948 ----- .../declarationMap-and-sourceMap-disabled.js | 1081 --- .../emitHelpers-in-all-projects.js | 3171 ------- ...tHelpers-in-only-one-dependency-project.js | 2339 ------ .../multiple-emitHelpers-in-all-projects.js | 3572 -------- ...tiple-emitHelpers-in-different-projects.js | 2594 ------ .../multiple-prologues-in-all-projects.js | 2850 ------- ...ultiple-prologues-in-different-projects.js | 2145 ----- .../outfile-concat/shebang-in-all-projects.js | 1978 ----- .../shebang-in-only-one-dependency-project.js | 1448 ---- .../outfile-concat/strict-in-all-projects.js | 2633 ------ .../strict-in-one-dependency.js | 2004 ----- ...hen-internal-is-inside-another-internal.js | 1458 ---- ...en-one-two-three-are-prepended-in-order.js | 1416 ---- .../stripInternal-jsdoc-style-comment.js | 4046 --------- ...en-one-two-three-are-prepended-in-order.js | 959 --- ...-jsdoc-style-with-comments-emit-enabled.js | 3807 --------- ...l-when-few-members-of-enum-are-internal.js | 1648 ---- ...en-one-two-three-are-prepended-in-order.js | 1922 ----- ...nal-when-prepend-is-completely-internal.js | 308 - ...en-one-two-three-are-prepended-in-order.js | 1416 ---- ...tripInternal-with-comments-emit-enabled.js | 4149 --------- .../tsbuild/outfile-concat/stripInternal.js | 4572 ---------- .../triple-slash-refs-in-all-projects.js | 2227 ----- .../triple-slash-refs-in-one-project.js | 1516 ---- ...-source-files-are-empty-in-the-own-file.js | 1439 ---- ...ncing-project-even-for-non-local-change.js | 566 -- .../with-outFile-and-non-local-change.js | 450 + ...-incremental-with-outFile-discrepancies.js | 270 +- ...t-options-with-incremental-with-outFile.js | 561 +- ...rent-options-with-outFile-discrepancies.js | 235 - .../different-options-with-outFile.js | 448 +- ...hen-declarationMap-changes-with-outFile.js | 82 +- ...ed-project-reference-doesnt-set-outFile.js | 134 - ...d-project-reference-output-doesnt-exist.js | 151 - .../with---out-incremental.js | 41 +- .../module-compilation/with---out-watch.js | 41 +- .../incremental/with---out-incremental.js | 31 +- .../tscWatch/incremental/with---out-watch.js | 31 +- ...tes-diagnostics-and-emit-for-decorators.js | 59 +- ...emit-when-verbatimModuleSyntax-changes.js} | 98 +- ...ting-with-emitOnlyDtsFiles-with-outFile.js | 101 +- ...et-in-the-session-and-when---out-is-set.js | 403 - ...nBackgroundUpdate-and-when---out-is-set.js | 408 - ...nBackgroundUpdate-and-when---out-is-set.js | 430 - ...-as-project-build-with-external-project.js | 120 +- .../ancestor-and-project-ref-management.js | 163 +- ...ssfully-find-references-with-out-option.js | 163 +- ...oes-not-error-on-container-only-project.js | 161 +- 93 files changed, 2880 insertions(+), 84616 deletions(-) delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js delete mode 100644 tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js rename tests/baselines/reference/tsbuild/{outfile-concat/explainFiles.js => outFile/baseline-sectioned-sourcemaps.js} (64%) rename tests/baselines/reference/tsbuild/{outfile-concat => outFile}/when-final-project-is-not-composite-but-incremental.js (69%) rename tests/baselines/reference/tsbuild/{outfile-concat => outFile}/when-final-project-is-not-composite-but-uses-project-references.js (64%) rename tests/baselines/reference/tsbuild/{outfile-concat => outFile}/when-final-project-specifies-tsBuildInfoFile.js (69%) delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js delete mode 100644 tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js create mode 100644 tests/baselines/reference/tsbuildWatch/programUpdates/with-outFile-and-non-local-change.js delete mode 100644 tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js delete mode 100644 tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js rename tests/baselines/reference/tscWatch/programUpdates/{updates-errors-and-emit-when-importsNotUsedAsValues-changes.js => updates-errors-and-emit-when-verbatimModuleSyntax-changes.js} (58%) delete mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js delete mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js delete mode 100644 tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 13304ea0b41bf..f370d4edbb200 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -1,4 +1,3 @@ -import * as ts from "../../_namespaces/ts"; import { dedent, } from "../../_namespaces/Utils"; @@ -10,22 +9,14 @@ import { verifyTsc, } from "../helpers/tsc"; import { - addRest, - addShebang, - addSpread, - addTestPrologue, - addTripleSlashRef, appendText, - enableStrict, loadProjectFromFiles, - removeRest, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { - let outFileFs: vfs.FileSystem; - before(() => { - outFileFs = loadProjectFromFiles({ + function outFileFs(prepend?: boolean) { + return loadProjectFromFiles({ "/src/app/file3.ts": dedent` export const z = 30; import { x } from "file1"; @@ -33,7 +24,6 @@ describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { "/src/app/file4.ts": `const myVar = 30;`, "/src/app/tsconfig.json": jsonToReadableText({ compilerOptions: { - ignoreDeprecations: "5.0", target: "es5", module: "amd", composite: true, @@ -44,7 +34,7 @@ describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { }, exclude: ["module.d.ts"], references: [ - { path: "../lib", prepend: true }, + { path: "../lib", prepend }, ], }), "/src/lib/file0.ts": `const myGlob = 20;`, @@ -64,175 +54,47 @@ describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { exclude: ["module.d.ts"], }), }); + } + + verifyTsc({ + scenario: "amdModulesWithOut", + subScenario: "modules and globals mixed in amd", + fs: outFileFs, + commandLineArgs: ["--b", "/src/app", "--verbose"], + baselineSourceMap: true, + edits: [{ + caption: "incremental-declaration-doesnt-change", + edit: fs => appendText(fs, "/src/lib/file1.ts", "console.log(x);"), + }], }); - after(() => { - outFileFs = undefined!; + + verifyTsc({ + scenario: "amdModulesWithOut", + subScenario: "prepend reports deprecation error", + fs: () => outFileFs(/*prepend*/ true), + commandLineArgs: ["--b", "/src/app", "--verbose"], + baselineSourceMap: true, + edits: [{ + caption: "incremental-declaration-doesnt-change", + edit: fs => appendText(fs, "/src/lib/file1.ts", "console.log(x);"), + }], }); - interface VerifyOutFileScenarioInput { - subScenario: string; - modifyFs?: (fs: vfs.FileSystem) => void; - modifyAgainFs?: (fs: vfs.FileSystem) => void; - } + describe("when the module resolution finds original source file", () => { + function modifyFs(fs: vfs.FileSystem) { + // Make lib to output to parent dir + replaceText(fs, "/src/lib/tsconfig.json", `"outFile": "module.js"`, `"outFile": "../module.js", "rootDir": "../"`); + // Change reference to file1 module to resolve to lib/file1 + replaceText(fs, "/src/app/file3.ts", "file1", "lib/file1"); + } - function verifyOutFileScenario({ - subScenario, - modifyFs, - modifyAgainFs, - }: VerifyOutFileScenarioInput) { verifyTsc({ scenario: "amdModulesWithOut", - subScenario, - fs: () => outFileFs, - commandLineArgs: ["--b", "/src/app", "--verbose"], - baselineSourceMap: true, + subScenario: "when the module resolution finds original source file", + fs: outFileFs, + commandLineArgs: ["-b", "/src/app", "--verbose"], modifyFs, - edits: [ - { - caption: "incremental-declaration-doesnt-change", - edit: fs => appendText(fs, "/src/lib/file1.ts", "console.log(x);"), - }, - ...(modifyAgainFs ? [{ - caption: "incremental-headers-change-without-dts-changes", - edit: modifyAgainFs, - }] : ts.emptyArray), - ], - }); - } - - describe("Prepend output with .tsbuildinfo", () => { - verifyOutFileScenario({ - subScenario: "modules and globals mixed in amd", - }); - - verifyOutFileScenario({ - subScenario: "prepend reports deprecation error", - modifyFs: fs => replaceText(fs, "/src/app/tsconfig.json", `"ignoreDeprecations": "5.0",`, ""), - }); - - // Prologues - describe("Prologues", () => { - verifyOutFileScenario({ - subScenario: "multiple prologues in all projects", - modifyFs: fs => { - enableStrict(fs, "/src/lib/tsconfig.json"); - addTestPrologue(fs, "/src/lib/file0.ts", `"myPrologue"`); - addTestPrologue(fs, "/src/lib/file2.ts", `"myPrologueFile"`); - addTestPrologue(fs, "/src/lib/global.ts", `"myPrologue3"`); - enableStrict(fs, "/src/app/tsconfig.json"); - addTestPrologue(fs, "/src/app/file3.ts", `"myPrologue"`); - addTestPrologue(fs, "/src/app/file4.ts", `"myPrologue2";`); - }, - modifyAgainFs: fs => addTestPrologue(fs, "/src/lib/file1.ts", `"myPrologue5"`), - }); - }); - - // Shebang - describe("Shebang", () => { - // changes declaration because its emitted in .d.ts file - verifyOutFileScenario({ - subScenario: "shebang in all projects", - modifyFs: fs => { - addShebang(fs, "lib", "file0"); - addShebang(fs, "lib", "file1"); - addShebang(fs, "app", "file3"); - }, - }); - }); - - // emitHelpers - describe("emitHelpers", () => { - verifyOutFileScenario({ - subScenario: "multiple emitHelpers in all projects", - modifyFs: fs => { - addSpread(fs, "lib", "file0"); - addRest(fs, "lib", "file1"); - addRest(fs, "app", "file3"); - addSpread(fs, "app", "file4"); - }, - modifyAgainFs: fs => removeRest(fs, "lib", "file1"), - }); - }); - - // triple slash refs - describe("triple slash refs", () => { - // changes declaration because its emitted in .d.ts file - verifyOutFileScenario({ - subScenario: "triple slash refs in all projects", - modifyFs: fs => { - addTripleSlashRef(fs, "lib", "file0"); - addTripleSlashRef(fs, "app", "file4"); - }, - }); - }); - - describe("stripInternal", () => { - function stripInternalScenario(fs: vfs.FileSystem) { - const internal = "/*@internal*/"; - replaceText( - fs, - "/src/app/tsconfig.json", - `"composite": true,`, - `"composite": true, -"stripInternal": true,`, - ); - replaceText(fs, "/src/lib/file0.ts", "const", `${internal} const`); - appendText( - fs, - "/src/lib/file1.ts", - ` -export class normalC { - ${internal} constructor() { } - ${internal} prop: string; - ${internal} method() { } - ${internal} get c() { return 10; } - ${internal} set c(val: number) { } -} -export namespace normalN { - ${internal} export class C { } - ${internal} export function foo() {} - ${internal} export namespace someNamespace { export class C {} } - ${internal} export namespace someOther.something { export class someClass {} } - ${internal} export import someImport = someNamespace.C; - ${internal} export type internalType = internalC; - ${internal} export const internalConst = 10; - ${internal} export enum internalEnum { a, b, c } -} -${internal} export class internalC {} -${internal} export function internalfoo() {} -${internal} export namespace internalNamespace { export class someClass {} } -${internal} export namespace internalOther.something { export class someClass {} } -${internal} export import internalImport = internalNamespace.someClass; -${internal} export type internalType = internalC; -${internal} export const internalConst = 10; -${internal} export enum internalEnum { a, b, c }`, - ); - } - - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "stripInternal", - modifyFs: stripInternalScenario, - modifyAgainFs: fs => replaceText(fs, "/src/lib/file1.ts", `export const`, `/*@internal*/ export const`), - }); - }); - - describe("when the module resolution finds original source file", () => { - function modifyFs(fs: vfs.FileSystem) { - // Make lib to output to parent dir - replaceText(fs, "/src/lib/tsconfig.json", `"outFile": "module.js"`, `"outFile": "../module.js", "rootDir": "../"`); - // Change reference to file1 module to resolve to lib/file1 - replaceText(fs, "/src/app/file3.ts", "file1", "lib/file1"); - } - - verifyTsc({ - scenario: "amdModulesWithOut", - subScenario: "when the module resolution finds original source file", - fs: () => outFileFs, - commandLineArgs: ["-b", "/src/app", "--verbose"], - modifyFs, - baselineSourceMap: true, - }); + baselineSourceMap: true, }); }); }); diff --git a/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts b/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts index 0dd59b5a0e800..5d560ddfaaf3e 100644 --- a/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts +++ b/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts @@ -7,7 +7,6 @@ import { } from "../helpers/tsc"; import { loadProjectFromFiles, - replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: javascriptProjectEmit::", () => { @@ -100,104 +99,6 @@ describe("unittests:: tsbuild:: javascriptProjectEmit::", () => { commandLineArgs: ["-b", "/src"], }); - verifyTsc({ - scenario: "javascriptProjectEmit", - subScenario: `modifies outfile js projects and concatenates them correctly`, - fs: () => - loadProjectFromFiles({ - "/src/common/nominal.js": Utils.dedent` - /** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ - `, - "/src/common/tsconfig.json": Utils.dedent` - { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - "outFile": "common.js", - - }, - "include": ["nominal.js"] - }`, - "/src/sub-project/index.js": Utils.dedent` - /** - * @typedef {Nominal} MyNominal - */ - const c = /** @type {*} */(null); - `, - "/src/sub-project/tsconfig.json": Utils.dedent` - { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "ignoreDeprecations":"5.0", - "composite": true, - "outFile": "sub-project.js", - - }, - "references": [ - { "path": "../common", "prepend": true } - ], - "include": ["./index.js"] - }`, - "/src/sub-project-2/index.js": Utils.dedent` - const variable = { - key: /** @type {MyNominal} */('value'), - }; - - /** - * @return {keyof typeof variable} - */ - function getVar() { - return 'key'; - } - `, - "/src/sub-project-2/tsconfig.json": Utils.dedent` - { - "extends": "../tsconfig.base.json", - "compilerOptions": { - "ignoreDeprecations":"5.0", - "composite": true, - "outFile": "sub-project-2.js", - - }, - "references": [ - { "path": "../sub-project", "prepend": true } - ], - "include": ["./index.js"] - }`, - "/src/tsconfig.json": Utils.dedent` - { - "compilerOptions": { - "ignoreDeprecations":"5.0", - "composite": true, - "outFile": "src.js" - }, - "references": [ - { "path": "./sub-project", "prepend": true }, - { "path": "./sub-project-2", "prepend": true } - ], - "include": [] - }`, - "/src/tsconfig.base.json": Utils.dedent` - { - "compilerOptions": { - "skipLibCheck": true, - "rootDir": "./", - "allowJs": true, - "checkJs": true, - "declaration": true - } - }`, - }, symbolLibContent), - commandLineArgs: ["-b", "/src"], - edits: [{ - caption: "incremental-declaration-doesnt-change", - edit: fs => replaceText(fs, "/src/sub-project/index.js", "null", "undefined"), - }], - }); - verifyTsc({ scenario: "javascriptProjectEmit", subScenario: `loads js-based projects with non-moved json files and emits them correctly`, diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index c9682caac868c..ddf6b77c7e899 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -13,32 +13,26 @@ import { import { noChangeOnlyRuns, testTscCompileLike, - TestTscEdit, TscCompileSystem, verifyTsc, verifyTscCompileLike, } from "../helpers/tsc"; import { - addRest, - addShebang, - addSpread, - addStubFoo, - addTestPrologue, - addTripleSlashRef, appendText, - changeStubToRest, - enableStrict, loadProjectFromFiles, - prependText, - removeRest, replaceText, } from "../helpers/vfs"; describe("unittests:: tsbuild:: outFile::", () => { let outFileFs: vfs.FileSystem; let outFileWithBuildFs: vfs.FileSystem; - before(() => { - outFileFs = loadProjectFromFiles({ + after(() => { + outFileFs = undefined!; + outFileWithBuildFs = undefined!; + }); + + function getOutFileFs() { + return outFileFs ??= loadProjectFromFiles({ "/src/first/first_PART1.ts": dedent` interface TheFirst { none: any; @@ -100,7 +94,6 @@ describe("unittests:: tsbuild:: outFile::", () => { `, "/src/second/tsconfig.json": jsonToReadableText({ compilerOptions: { - ignoreDeprecations: "5.0", target: "es5", composite: true, removeComments: true, @@ -119,7 +112,6 @@ describe("unittests:: tsbuild:: outFile::", () => { `, "/src/third/tsconfig.json": jsonToReadableText({ compilerOptions: { - ignoreDeprecations: "5.0", target: "es5", composite: true, removeComments: true, @@ -134,98 +126,75 @@ describe("unittests:: tsbuild:: outFile::", () => { "third_part1.ts", ], references: [ - { path: "../first", prepend: true }, - { path: "../second", prepend: true }, + { path: "../first" }, + { path: "../second" }, ], }), }); - }); - after(() => { - outFileFs = undefined!; - outFileWithBuildFs = undefined!; - }); + } - interface VerifyOutFileScenarioInput { - subScenario: string; - modifyFs?: (fs: vfs.FileSystem) => void; - modifyAgainFs?: (fs: vfs.FileSystem) => void; - ignoreDtsChanged?: true; - ignoreDtsUnchanged?: true; - baselineOnly?: true; - additionalCommandLineArgs?: string[]; + function getOutFileFsAfterBuild() { + if (outFileWithBuildFs) return outFileWithBuildFs; + const fs = getOutFileFs().shadow(); + const sys = new fakes.System(fs, { executingFilePath: "/lib/tsc" }); + const host = createSolutionBuilderHostForBaseline(sys as TscCompileSystem); + const builder = ts.createSolutionBuilder(host, ["/src/third"], { dry: false, force: false, verbose: true }); + builder.build(); + fs.makeReadonly(); + return outFileWithBuildFs = fs; } - function verifyOutFileScenario({ - subScenario, - modifyFs, - modifyAgainFs, - ignoreDtsChanged, - ignoreDtsUnchanged, - baselineOnly, - additionalCommandLineArgs, - }: VerifyOutFileScenarioInput) { - let edits: TestTscEdit[] | undefined; - if (!ignoreDtsChanged) { - (edits ??= []).push({ + // Verify initial + incremental edits + verifyTsc({ + subScenario: "baseline sectioned sourcemaps", + fs: getOutFileFs, + scenario: "outFile", + commandLineArgs: ["--b", "/src/third", "--verbose", "--explainFiles"], + baselineSourceMap: true, + baselineReadFileCalls: true, + edits: [ + { caption: "incremental-declaration-changes", edit: fs => replaceText(fs, "/src/first/first_PART1.ts", "Hello", "Hola"), - }); - } - if (!ignoreDtsUnchanged) { - (edits ??= []).push({ + }, + { caption: "incremental-declaration-doesnt-change", edit: fs => appendText(fs, "/src/first/first_PART1.ts", "console.log(s);"), - }); - } - if (modifyAgainFs) { - (edits ??= []).push({ - caption: "incremental-headers-change-without-dts-changes", - edit: modifyAgainFs, - }); - } - verifyTsc({ - subScenario, - fs: () => outFileFs, - scenario: "outfile-concat", - commandLineArgs: ["--b", "/src/third", "--verbose", ...(additionalCommandLineArgs || [])], - baselineSourceMap: true, - modifyFs, - baselineReadFileCalls: !baselineOnly, - edits, - }); - } - - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "baseline sectioned sourcemaps", - }); - - verifyOutFileScenario({ - subScenario: "explainFiles", - additionalCommandLineArgs: ["--explainFiles"], - baselineOnly: true, + }, + ], }); // Verify baseline with build info + dts unChanged - verifyOutFileScenario({ + verifyTsc({ subScenario: "when final project is not composite but uses project references", + fs: getOutFileFs, + scenario: "outFile", + commandLineArgs: ["--b", "/src/third", "--verbose"], + baselineSourceMap: true, modifyFs: fs => replaceText(fs, "/src/third/tsconfig.json", `"composite": true,`, ""), - ignoreDtsChanged: true, - baselineOnly: true, + edits: [{ + caption: "incremental-declaration-doesnt-change", + edit: fs => appendText(fs, "/src/first/first_PART1.ts", "console.log(s);"), + }], }); // Verify baseline with build info - verifyOutFileScenario({ + verifyTsc({ subScenario: "when final project is not composite but incremental", + fs: getOutFileFs, + scenario: "outFile", + commandLineArgs: ["--b", "/src/third", "--verbose"], + baselineSourceMap: true, modifyFs: fs => replaceText(fs, "/src/third/tsconfig.json", `"composite": true,`, `"incremental": true,`), - ignoreDtsChanged: true, - ignoreDtsUnchanged: true, - baselineOnly: true, }); // Verify baseline with build info - verifyOutFileScenario({ + verifyTsc({ subScenario: "when final project specifies tsBuildInfoFile", + fs: getOutFileFs, + scenario: "outFile", + commandLineArgs: ["--b", "/src/third", "--verbose"], + baselineSourceMap: true, modifyFs: fs => replaceText( fs, @@ -234,22 +203,8 @@ describe("unittests:: tsbuild:: outFile::", () => { `"composite": true, "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo",`, ), - ignoreDtsChanged: true, - ignoreDtsUnchanged: true, - baselineOnly: true, }); - function getOutFileFsAfterBuild() { - if (outFileWithBuildFs) return outFileWithBuildFs; - const fs = outFileFs.shadow(); - const sys = new fakes.System(fs, { executingFilePath: "/lib/tsc" }); - const host = createSolutionBuilderHostForBaseline(sys as TscCompileSystem); - const builder = ts.createSolutionBuilder(host, ["/src/third"], { dry: false, force: false, verbose: true }); - builder.build(); - fs.makeReadonly(); - return outFileWithBuildFs = fs; - } - verifyTsc({ scenario: "outFile", subScenario: "clean projects", @@ -269,7 +224,7 @@ describe("unittests:: tsbuild:: outFile::", () => { verifyTsc({ scenario: "outFile", subScenario: "tsbuildinfo is not generated when incremental is set to false", - fs: () => outFileFs, + fs: getOutFileFs, commandLineArgs: ["--b", "/src/third", "--verbose"], modifyFs: fs => replaceText(fs, "/src/third/tsconfig.json", `"composite": true,`, ""), }); @@ -290,7 +245,7 @@ describe("unittests:: tsbuild:: outFile::", () => { verifyTsc({ scenario: "outFile", subScenario: "rebuilds completely when command line incremental flag changes between non dts changes", - fs: () => outFileFs, + fs: getOutFileFs, // Make non composite third project modifyFs: fs => replaceText(fs, "/src/third/tsconfig.json", `"composite": true,`, ""), // Build with command line incremental @@ -312,7 +267,7 @@ describe("unittests:: tsbuild:: outFile::", () => { verifyTsc({ scenario: "outFile", subScenario: "when input file text does not change but its modified time changes", - fs: () => outFileFs, + fs: getOutFileFs, commandLineArgs: ["--b", "/src/third", "--verbose"], edits: [ { @@ -328,7 +283,7 @@ describe("unittests:: tsbuild:: outFile::", () => { verifyTscCompileLike(testTscCompileLike, { scenario: "outFile", subScenario: "builds till project specified", - fs: () => outFileFs, + fs: getOutFileFs, commandLineArgs: ["--build", "/src/second/tsconfig.json"], compile: sys => { const buildHost = createSolutionBuilderHostForBaseline(sys); @@ -349,472 +304,12 @@ describe("unittests:: tsbuild:: outFile::", () => { }, }); - describe("Prepend output with .tsbuildinfo", () => { - // Prologues - describe("Prologues", () => { - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "strict in all projects", - modifyFs: fs => { - enableStrict(fs, "/src/first/tsconfig.json"); - enableStrict(fs, "/src/second/tsconfig.json"); - enableStrict(fs, "/src/third/tsconfig.json"); - }, - modifyAgainFs: fs => addTestPrologue(fs, "/src/first/first_PART1.ts", `"myPrologue"`), - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "strict in one dependency", - modifyFs: fs => enableStrict(fs, "/src/second/tsconfig.json"), - modifyAgainFs: fs => addTestPrologue(fs, "src/first/first_PART1.ts", `"myPrologue"`), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify initial + incremental edits - sourcemap verification - verifyOutFileScenario({ - subScenario: "multiple prologues in all projects", - modifyFs: fs => { - enableStrict(fs, "/src/first/tsconfig.json"); - addTestPrologue(fs, "/src/first/first_PART1.ts", `"myPrologue"`); - enableStrict(fs, "/src/second/tsconfig.json"); - addTestPrologue(fs, "/src/second/second_part1.ts", `"myPrologue"`); - addTestPrologue(fs, "/src/second/second_part2.ts", `"myPrologue2";`); - enableStrict(fs, "/src/third/tsconfig.json"); - addTestPrologue(fs, "/src/third/third_part1.ts", `"myPrologue";`); - addTestPrologue(fs, "/src/third/third_part1.ts", `"myPrologue3";`); - }, - modifyAgainFs: fs => addTestPrologue(fs, "/src/first/first_PART1.ts", `"myPrologue5"`), - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "multiple prologues in different projects", - modifyFs: fs => { - enableStrict(fs, "/src/first/tsconfig.json"); - addTestPrologue(fs, "/src/second/second_part1.ts", `"myPrologue"`); - addTestPrologue(fs, "/src/second/second_part2.ts", `"myPrologue2";`); - enableStrict(fs, "/src/third/tsconfig.json"); - }, - modifyAgainFs: fs => addTestPrologue(fs, "/src/first/first_PART1.ts", `"myPrologue5"`), - ignoreDtsChanged: true, - baselineOnly: true, - }); - }); - - // Shebang - describe("Shebang", () => { - // changes declaration because its emitted in .d.ts file - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "shebang in all projects", - modifyFs: fs => { - addShebang(fs, "first", "first_PART1"); - addShebang(fs, "first", "first_part2"); - addShebang(fs, "second", "second_part1"); - addShebang(fs, "third", "third_part1"); - }, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "shebang in only one dependency project", - modifyFs: fs => addShebang(fs, "second", "second_part1"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - }); - - // emitHelpers - describe("emitHelpers", () => { - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "emitHelpers in all projects", - modifyFs: fs => { - addRest(fs, "first", "first_PART1"); - addRest(fs, "second", "second_part1"); - addRest(fs, "third", "third_part1"); - }, - modifyAgainFs: fs => removeRest(fs, "first", "first_PART1"), - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "emitHelpers in only one dependency project", - modifyFs: fs => { - addStubFoo(fs, "first", "first_PART1"); - addRest(fs, "second", "second_part1"); - }, - modifyAgainFs: fs => changeStubToRest(fs, "first", "first_PART1"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "multiple emitHelpers in all projects", - modifyFs: fs => { - addRest(fs, "first", "first_PART1"); - addSpread(fs, "first", "first_part3"); - addRest(fs, "second", "second_part1"); - addSpread(fs, "second", "second_part2"); - addRest(fs, "third", "third_part1"); - addSpread(fs, "third", "third_part1"); - }, - modifyAgainFs: fs => removeRest(fs, "first", "first_PART1"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "multiple emitHelpers in different projects", - modifyFs: fs => { - addRest(fs, "first", "first_PART1"); - addSpread(fs, "second", "second_part1"); - addRest(fs, "third", "third_part1"); - }, - modifyAgainFs: fs => removeRest(fs, "first", "first_PART1"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - }); - - // triple slash refs - describe("triple slash refs", () => { - // changes declaration because its emitted in .d.ts file - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "triple slash refs in all projects", - modifyFs: fs => { - addTripleSlashRef(fs, "first", "first_part2"); - addTripleSlashRef(fs, "second", "second_part1"); - addTripleSlashRef(fs, "third", "third_part1"); - }, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "triple slash refs in one project", - modifyFs: fs => addTripleSlashRef(fs, "second", "second_part1"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - }); - - describe("stripInternal", () => { - function disableRemoveComments(fs: vfs.FileSystem, file: string) { - replaceText(fs, file, `"removeComments": true`, `"removeComments": false`); - } - - function diableRemoveCommentsInAll(fs: vfs.FileSystem) { - disableRemoveComments(fs, "/src/first/tsconfig.json"); - disableRemoveComments(fs, "/src/second/tsconfig.json"); - disableRemoveComments(fs, "/src/third/tsconfig.json"); - } - - function stripInternalOfThird(fs: vfs.FileSystem) { - replaceText( - fs, - "/src/third/tsconfig.json", - `"declaration": true,`, - `"declaration": true, - "stripInternal": true,`, - ); - } - - function stripInternalScenario(fs: vfs.FileSystem, removeCommentsDisabled?: boolean, jsDocStyle?: boolean) { - const internal: string = jsDocStyle ? `/**@internal*/` : `/*@internal*/`; - if (removeCommentsDisabled) { - diableRemoveCommentsInAll(fs); - } - stripInternalOfThird(fs); - replaceText(fs, "/src/first/first_PART1.ts", "interface", `${internal} interface`); - appendText( - fs, - "/src/second/second_part1.ts", - ` -class normalC { - ${internal} constructor() { } - ${internal} prop: string; - ${internal} method() { } - ${internal} get c() { return 10; } - ${internal} set c(val: number) { } -} -namespace normalN { - ${internal} export class C { } - ${internal} export function foo() {} - ${internal} export namespace someNamespace { export class C {} } - ${internal} export namespace someOther.something { export class someClass {} } - ${internal} export import someImport = someNamespace.C; - ${internal} export type internalType = internalC; - ${internal} export const internalConst = 10; - ${internal} export enum internalEnum { a, b, c } -} -${internal} class internalC {} -${internal} function internalfoo() {} -${internal} namespace internalNamespace { export class someClass {} } -${internal} namespace internalOther.something { export class someClass {} } -${internal} import internalImport = internalNamespace.someClass; -${internal} type internalType = internalC; -${internal} const internalConst = 10; -${internal} enum internalEnum { a, b, c }`, - ); - } - - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "stripInternal", - modifyFs: stripInternalScenario, - modifyAgainFs: fs => replaceText(fs, "/src/first/first_PART1.ts", `/*@internal*/ interface`, "interface"), - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "stripInternal with comments emit enabled", - modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true), - modifyAgainFs: fs => replaceText(fs, "/src/first/first_PART1.ts", `/*@internal*/ interface`, "interface"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "stripInternal jsdoc style comment", - modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), - modifyAgainFs: fs => replaceText(fs, "/src/first/first_PART1.ts", `/**@internal*/ interface`, "interface"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "stripInternal jsdoc style with comments emit enabled", - modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - describe("with three levels of project dependency", () => { - function makeOneTwoThreeDependOrder(fs: vfs.FileSystem) { - replaceText( - fs, - "/src/second/tsconfig.json", - "[", - `[ - { "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 }], - }), - ); - } - - function stripInternalWithDependentOrder(fs: vfs.FileSystem, removeCommentsDisabled?: boolean, jsDocStyle?: boolean) { - stripInternalScenario(fs, removeCommentsDisabled, jsDocStyle); - makeOneTwoThreeDependOrder(fs); - } - - // Verify initial + incremental edits - verifyOutFileScenario({ - subScenario: "stripInternal when one-two-three are prepended in order", - modifyFs: stripInternalWithDependentOrder, - modifyAgainFs: fs => replaceText(fs, "/src/first/first_PART1.ts", `/*@internal*/ interface`, "interface"), - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "stripInternal with comments emit enabled when one-two-three are prepended in order", - modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true), - modifyAgainFs: fs => replaceText(fs, "/src/first/first_PART1.ts", `/*@internal*/ interface`, "interface"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "stripInternal jsdoc style comment when one-two-three are prepended in order", - modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), - modifyAgainFs: fs => replaceText(fs, "/src/first/first_PART1.ts", `/**@internal*/ interface`, "interface"), - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "stripInternal jsdoc style with comments emit enabled when one-two-three are prepended in order", - modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), - ignoreDtsChanged: true, - baselineOnly: true, - }); - }); - - // only baseline - verifyOutFileScenario({ - subScenario: "stripInternal baseline when internal is inside another internal", - modifyFs: fs => { - stripInternalOfThird(fs); - prependText( - fs, - "/src/first/first_PART1.ts", - `namespace ts { - /* @internal */ - /** - * Subset of properties from SourceFile that are used in multiple utility functions - */ - export interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - /* @internal */ - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - - /* @internal */ - export interface RedirectInfo { - /** Source file this redirects to. */ - readonly redirectTarget: SourceFile; - /** - * Source file for the duplicate package. This will not be used by the Program, - * but we need to keep this around so we can watch for changes in underlying. - */ - readonly unredirected: SourceFile; - } - - // Source files are declarations when they are external modules. - export interface SourceFile { - someProp: string; - } -}`, - ); - }, - ignoreDtsChanged: true, - ignoreDtsUnchanged: true, - baselineOnly: true, - }); - - // only baseline - verifyOutFileScenario({ - subScenario: "stripInternal when few members of enum are internal", - modifyFs: fs => { - stripInternalOfThird(fs); - prependText( - fs, - "/src/first/first_PART1.ts", - `enum TokenFlags { - None = 0, - /* @internal */ - PrecedingLineBreak = 1 << 0, - /* @internal */ - PrecedingJSDocComment = 1 << 1, - /* @internal */ - Unterminated = 1 << 2, - /* @internal */ - ExtendedUnicodeEscape = 1 << 3, - Scientific = 1 << 4, - Octal = 1 << 5, - HexSpecifier = 1 << 6, - BinarySpecifier = 1 << 7, - OctalSpecifier = 1 << 8, - /* @internal */ - ContainsSeparator = 1 << 9, - /* @internal */ - BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - /* @internal */ - NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -} -`, - ); - }, - ignoreDtsChanged: true, - ignoreDtsUnchanged: true, - baselineOnly: true, - }); - - verifyOutFileScenario({ - subScenario: "stripInternal when prepend is completely internal", - baselineOnly: true, - ignoreDtsChanged: true, - ignoreDtsUnchanged: true, - modifyFs: fs => { - fs.writeFileSync("/src/first/first_PART1.ts", "/* @internal */ const A = 1;"); - fs.writeFileSync("/src/third/third_part1.ts", "const B = 2;"); - fs.writeFileSync( - "/src/first/tsconfig.json", - jsonToReadableText({ - compilerOptions: { - composite: true, - declaration: true, - declarationMap: true, - skipDefaultLibCheck: true, - sourceMap: true, - outFile: "./bin/first-output.js", - }, - files: ["/src/first/first_PART1.ts"], - }), - ); - fs.writeFileSync( - "/src/third/tsconfig.json", - jsonToReadableText({ - 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"], - }), - ); - }, - }); - }); - - describe("empty source files", () => { - function makeThirdEmptySourceFile(fs: vfs.FileSystem) { - fs.writeFileSync("/src/third/third_part1.ts", "", "utf8"); - } - - // Verify ignore dtsChanged - verifyOutFileScenario({ - subScenario: "when source files are empty in the own file", - modifyFs: makeThirdEmptySourceFile, - ignoreDtsChanged: true, - baselineOnly: true, - }); - - // only baseline - verifyOutFileScenario({ - subScenario: "declarationMap and sourceMap disabled", - modifyFs: fs => { - makeThirdEmptySourceFile(fs); - replaceText(fs, "/src/third/tsconfig.json", `"composite": true,`, ""); - replaceText(fs, "/src/third/tsconfig.json", `"sourceMap": true,`, ""); - replaceText(fs, "/src/third/tsconfig.json", `"declarationMap": true,`, ""); - }, - ignoreDtsChanged: true, - ignoreDtsUnchanged: true, - baselineOnly: true, - }); - }); - }); - verifyTsc({ scenario: "outFile", subScenario: "non module projects without prepend", - fs: () => outFileFs, + fs: getOutFileFs, commandLineArgs: ["--b", "/src/third", "--verbose"], modifyFs: fs => { - // No prepend - 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",`); replaceText(fs, "/src/second/tsconfig.json", `"composite": true,`, `"composite": true, "module": "none",`); diff --git a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts index 814b53817e4db..307399cb6e142 100644 --- a/src/testRunner/unittests/tsbuildWatch/programUpdates.ts +++ b/src/testRunner/unittests/tsbuildWatch/programUpdates.ts @@ -182,7 +182,7 @@ describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { verifyTscWatch({ scenario: "programUpdates", - subScenario: "when referenced using prepend builds referencing project even for non local change", + subScenario: "with outFile and non local change", commandLineArgs: ["-b", "-w", "sample1/logic"], sys: () => createWatchedSystem({ @@ -192,8 +192,8 @@ describe("unittests:: tsbuildWatch:: watchMode:: program updates", () => { }), "/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 }], + compilerOptions: { composite: true, declaration: true, outFile: "index.js" }, + references: [{ path: "../core" }], }), "/user/username/projects/sample1/logic/index.ts": `function bar() { return foo() + 1 };`, }, { currentDirectory: "/user/username/projects" }), diff --git a/src/testRunner/unittests/tsc/projectReferencesConfig.ts b/src/testRunner/unittests/tsc/projectReferencesConfig.ts index b641bb3038454..7d7331c28e45c 100644 --- a/src/testRunner/unittests/tsc/projectReferencesConfig.ts +++ b/src/testRunner/unittests/tsc/projectReferencesConfig.ts @@ -150,38 +150,6 @@ describe("unittests:: config:: project-references constraint checking for settin }), commandLineArgs: ["--p", "/primary/tsconfig.json"], }); - - verifyTsc({ - scenario: "projectReferencesConfig", - subScenario: "errors when a prepended project reference doesnt set outFile", - fs: () => - loadProjectFromFiles({ - "/primary/tsconfig.json": getConfig({ - references: [{ path: "../someProj", prepend: true }], - }), - "/primary/a.ts": emptyModule(), - "/someProj/tsconfig.json": getConfig(), - "/someProj/b.ts": "const x = 100;", - }), - commandLineArgs: ["--p", "/primary/tsconfig.json", "--ignoreDeprecations", "5.0"], - }); - - verifyTsc({ - scenario: "projectReferencesConfig", - subScenario: "errors when a prepended project reference output doesnt exist", - fs: () => - loadProjectFromFiles({ - "/primary/tsconfig.json": getConfig({ - references: [{ path: "../someProj", prepend: true }], - }), - "/primary/a.ts": "const y = x;", - "/someProj/tsconfig.json": getConfig({ - options: { outFile: "foo.js" }, - }), - "/someProj/b.ts": "const x = 100;", - }), - commandLineArgs: ["--p", "/primary/tsconfig.json", "--ignoreDeprecations", "5.0"], - }); }); /** diff --git a/src/testRunner/unittests/tscWatch/programUpdates.ts b/src/testRunner/unittests/tscWatch/programUpdates.ts index 73268c59db8eb..0eea0079ca228 100644 --- a/src/testRunner/unittests/tscWatch/programUpdates.ts +++ b/src/testRunner/unittests/tscWatch/programUpdates.ts @@ -364,7 +364,7 @@ export class A { const tsconfig: File = { path: "/tsconfig.json", content: jsonToReadableText({ - compilerOptions: { target: "es6", importsNotUsedAsValues: "error" }, + compilerOptions: { target: "es6", verbatimModuleSyntax: true }, }), }; return createWatchedSystem([libFile, aTs, bTs, tsconfig]); @@ -376,7 +376,7 @@ export class A { sys.modifyFile( "/tsconfig.json", jsonToReadableText({ - compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true }, + compilerOptions: { target: "es6", verbatimModuleSyntax: true, experimentalDecorators: true }, }), ), timeouts: sys => sys.runQueuedTimeoutCallbacks(), @@ -387,7 +387,7 @@ export class A { sys.modifyFile( "/tsconfig.json", jsonToReadableText({ - compilerOptions: { target: "es6", importsNotUsedAsValues: "error", experimentalDecorators: true, emitDecoratorMetadata: true }, + compilerOptions: { target: "es6", verbatimModuleSyntax: true, experimentalDecorators: true, emitDecoratorMetadata: true }, }), ), timeouts: sys => sys.runQueuedTimeoutCallbacks(), @@ -1527,7 +1527,7 @@ class D extends C { prop = 1; }`, verifyTscWatch({ scenario, - subScenario: "updates errors and emit when importsNotUsedAsValues changes", + subScenario: "updates errors and emit when verbatimModuleSyntax changes", commandLineArgs: ["-w"], sys: () => { const aFile: File = { @@ -1547,18 +1547,25 @@ export function f(p: C) { return p; }`, }, edits: [ { - caption: 'Set to "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`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "error" } })), + caption: "Enable verbatimModuleSyntax", + edit: sys => + sys.writeFile( + `/user/username/projects/myproject/tsconfig.json`, + jsonToReadableText({ + compilerOptions: { verbatimModuleSyntax: true }, + }), + ), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, { - caption: 'Set to "preserve"', - edit: sys => sys.writeFile(`/user/username/projects/myproject/tsconfig.json`, jsonToReadableText({ compilerOptions: { importsNotUsedAsValues: "preserve" } })), + caption: "Disable verbatimModuleSyntax", + edit: sys => + sys.writeFile( + `/user/username/projects/myproject/tsconfig.json`, + jsonToReadableText({ + compilerOptions: { verbatimModuleSyntax: false }, + }), + ), timeouts: sys => sys.runQueuedTimeoutCallbacks(), }, ], diff --git a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts index a8199a327054a..abf1d24bcc39b 100644 --- a/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts +++ b/src/testRunner/unittests/tsserver/events/projectUpdatedInBackground.ts @@ -46,7 +46,7 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { baselineTsserverLogs("events/projectUpdatedInBackground", `${scenario} and when adding new file`, session); }); - describe("with --out or --outFile setting", () => { + describe("with --outFile setting", () => { function verifyEventWithOutSettings(subScenario: string, compilerOptions: ts.CompilerOptions = {}) { it(subScenario, () => { const config: File = { @@ -79,7 +79,6 @@ describe("unittests:: tsserver:: events:: ProjectsUpdatedInBackground", () => { }); } verifyEventWithOutSettings("when both options are not set"); - verifyEventWithOutSettings("when --out is set", { out: "/a/out.js" }); verifyEventWithOutSettings("when --outFile is set", { outFile: "/a/out.js" }); }); diff --git a/src/testRunner/unittests/tsserver/projectReferences.ts b/src/testRunner/unittests/tsserver/projectReferences.ts index 78b35303fd295..ff68f3c9040c3 100644 --- a/src/testRunner/unittests/tsserver/projectReferences.ts +++ b/src/testRunner/unittests/tsserver/projectReferences.ts @@ -54,14 +54,13 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { 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 }, + { path: "../lib" }, ], }), }; @@ -79,7 +78,6 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { path: "/user/username/projects/container/compositeExec/tsconfig.json", content: jsonToReadableText({ compilerOptions: { - ignoreDeprecations: "5.0", outFile: "../built/local/compositeExec.js", composite: true, declarationMap: true, @@ -88,7 +86,7 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { "index.ts", ], references: [ - { path: "../lib", prepend: true }, + { path: "../lib" }, ], }), }; @@ -115,14 +113,7 @@ describe("unittests:: tsserver:: with project references and tsbuild", () => { }; const files = [libFile, containerLibConfig, containerLibIndex, containerExecConfig, containerExecIndex, containerCompositeExecConfig, containerCompositeExecIndex, containerConfig]; if (tempFile) files.push(tempFile); - - const rootNames = [containerConfig.path]; - const host = createServerHost(files); - // Can't use createHostWithSolutionBuild. This test used to work, - // but no longer does since prepend isn't allowed in project references. - // We just baseline and assert nothing about the output. - solutionBuildWithBaseline(host, rootNames); - + const host = createHostWithSolutionBuild(files, [containerConfig.path]); const session = new TestSession(host); return { files, session, containerConfig, containerCompositeExecIndex }; } 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 567b9e8fbd7c9..9d4cb1df205f5 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 @@ -26,7 +26,6 @@ const myVar = 30; //// [/src/app/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "module": "amd", "composite": true, @@ -40,8 +39,7 @@ const myVar = 30; ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -86,27 +84,206 @@ Output:: [12:00:18 AM] Building project '/src/lib/tsconfig.json'... -[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:26 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/app/tsconfig.json'... +[12:00:27 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file3.ts","file4.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(2, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 7) + SourceIndex(0) +3 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) +4 >Emitted(2, 18) Source(1, 14) + SourceIndex(0) +5 >Emitted(2, 19) Source(1, 15) + SourceIndex(0) +6 >Emitted(2, 24) Source(1, 20) + SourceIndex(0) +7 >Emitted(2, 25) Source(1, 21) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 9) Source(1, 1) + SourceIndex(1) +3 >Emitted(4, 15) Source(1, 7) + SourceIndex(1) +4 >Emitted(4, 20) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 25) Source(1, 17) + SourceIndex(1) +6 >Emitted(4, 26) Source(1, 18) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.d.ts.map +//// [/src/app/module.js] +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map -Found 1 error. +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file3.ts","file4.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = void 0; +>>> exports.z = 30; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1 >Emitted(5, 5) Source(1, 14) + SourceIndex(0) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(0) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(0) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(0) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(0) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(7, 5) Source(1, 7) + SourceIndex(1) +3 >Emitted(7, 10) Source(1, 12) + SourceIndex(1) +4 >Emitted(7, 13) Source(1, 15) + SourceIndex(1) +5 >Emitted(7, 15) Source(1, 17) + SourceIndex(1) +6 >Emitted(7, 16) Source(1, 18) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"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":"-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../lib/module.d.ts", + "./file3.ts", + "./file4.ts" + ], + "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": "-10505171738-export const z = 30;\nimport { x } from \"file1\";\n", + "./file4.ts": "1463681686-const myVar = 30;" + }, + "root": [ + [ + 3, + "./file3.ts" + ], + [ + 4, + "./file4.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true, + "module": 2, + "outFile": "./module.js", + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n", + "latestChangedDtsFile": "./module.d.ts" + }, + "version": "FakeTSVersion", + "size": 1161 +} -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - //// [/src/lib/module.d.ts] declare const myGlob = 20; declare module "file1" { @@ -375,77 +552,10 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":445,"kind":"text"}],"mapHash":"15919942799-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-9556600741-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-445) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 445, - "kind": "text" - } - ], - "hash": "-9556600741-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "15919942799-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -488,7 +598,7 @@ declare const globalConst = 10; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2728 + "size": 1111 } @@ -502,35 +612,22 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:32 AM] Projects in this build: +[12:00:40 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:34 AM] Building project '/src/lib/tsconfig.json'... +[12:00:41 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:42 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist +[12:00:42 AM] Building project '/src/lib/tsconfig.json'... -[12:00:43 AM] Building project '/src/app/tsconfig.json'... +[12:00:49 AM] Project 'src/app/tsconfig.json' is up to date with .d.ts files from its dependencies -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:00:50 AM] Updating output timestamps of project '/src/app/tsconfig.json'... -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success +//// [/src/app/module.tsbuildinfo] file changed its modified time //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] @@ -699,78 +796,10 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":473,"kind":"text"}],"mapHash":"32224580248-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"7050136879-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-473) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 473, - "kind": "text" - } - ], - "hash": "7050136879-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "32224580248-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -813,6 +842,6 @@ declare const globalConst = 10; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2811 + "size": 1125 } 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 deleted file mode 100644 index 71857ff0d0a8e..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,2225 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; -function forappfile3Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/app/file4.ts] -const myVar = 30; -function appfile4Spread(...b: number[]) { } -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 - } - ] -} - -//// [/src/lib/file0.ts] -const myGlob = 20; -function libfile0Spread(...b: number[]) { } -const libfile0_ar = [20, 30]; -libfile0Spread(10, ...libfile0_ar); - -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - -//// [/src/lib/file2.ts] -export const y = 20; - -//// [/src/lib/global.ts] -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" - ] -} - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:22 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[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:24 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:34 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:17:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -17 { -   ~ -18 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -19 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -20 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) ---- ->>>declare function libfile0Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) -3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) -5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) -6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) -7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) -8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) -9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) ---- ->>>declare const libfile0_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > libfile0_ar -5 > = [20, 30] -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) -3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) -4 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) -5 >Emitted(3, 36) Source(3, 29) + SourceIndex(0) -6 >Emitted(3, 37) Source(3, 30) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(37, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(39, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(40, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(45, 79) Source(4, 36) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(51, 29) Source(1, 45) + SourceIndex(1) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(52, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(52, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(52, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(52, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(52, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(52, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(52, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(52, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(52, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(52, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(52, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(52, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(52, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(52, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(52, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(52, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(52, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(52, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(52, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(52, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(52, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(52, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(52, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(52, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(52, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(53, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(53, 6) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(59, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(59, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(59, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(59, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(59, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(59, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(61, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(61, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(61, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(61, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(61, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(61, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.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":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]},"mapHash":"8627584870-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"57418107229-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"17976393265-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -emitHelpers: (0-489):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (490-870):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (871-1361):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (1362-2167) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-255) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.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": "text" - } - ], - "hash": "57418107229-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "8627584870-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}", - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray", - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 255, - "kind": "text" - } - ], - "hash": "17976393265-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "./file1.ts": "186113334-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "downlevelIteration": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 5645 -} - - - -Change:: incremental-declaration-doesnt-change -Input:: -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:38 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:40 AM] Building project '/src/lib/tsconfig.json'... - -[12:00:48 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:00:49 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:17:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -17 { -   ~ -18 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -19 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -20 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(37, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(39, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(40, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(45, 79) Source(4, 36) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(51, 29) Source(1, 45) + SourceIndex(1) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(52, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(52, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(52, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(52, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(52, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(52, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(52, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(52, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(52, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(52, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(52, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(52, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(52, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(52, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(52, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(52, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(52, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(52, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(52, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(52, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(52, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(52, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(52, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(52, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(52, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(53, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(53, 6) Source(3, 2) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(54, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(54, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(54, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(54, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(54, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(54, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(54, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(54, 28) Source(3, 17) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(60, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(60, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(60, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(60, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(60, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(60, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(62, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(62, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(62, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(62, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(62, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(62, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.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":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]},"mapHash":"13391497112-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"56659072305-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"17976393265-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -emitHelpers: (0-489):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (490-870):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (871-1361):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (1362-2195) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); - } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-255) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.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": "text" - } - ], - "hash": "56659072305-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "13391497112-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}", - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray", - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 255, - "kind": "text" - } - ], - "hash": "17976393265-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "./file1.ts": "12502459933-export const x = 10;function forlibfile1Rest() {\nconst { b, ...rest } = { a: 10, b: 30, yy: 30 };\n}console.log(x);", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "downlevelIteration": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 5732 -} - - - -Change:: incremental-headers-change-without-dts-changes -Input:: -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { }console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:53 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:00:54 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:55 AM] Building project '/src/lib/tsconfig.json'... - -[12:01:03 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:01:04 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:17:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -17 { -   ~ -18 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -19 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -20 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(26, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(26, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(26, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(26, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(26, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(26, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(27, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(27, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(27, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(28, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(28, 16) Source(2, 39) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(29, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(29, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(29, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(29, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(29, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(29, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(30, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(30, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(32, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(32, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(33, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(33, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(33, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(33, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(33, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(33, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(33, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(33, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(33, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(33, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(34, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(34, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(34, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(34, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(34, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(34, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(34, 79) Source(4, 36) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(39, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(39, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(39, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(39, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(39, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(39, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> -2 > function -3 > forlibfile1Rest -4 > () { -5 > } -1->Emitted(40, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(40, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(40, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(40, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(40, 35) Source(1, 51) + SourceIndex(1) ---- ->>> console.log(exports.x); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1 > -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1 >Emitted(41, 5) Source(1, 51) + SourceIndex(1) -2 >Emitted(41, 12) Source(1, 58) + SourceIndex(1) -3 >Emitted(41, 13) Source(1, 59) + SourceIndex(1) -4 >Emitted(41, 16) Source(1, 62) + SourceIndex(1) -5 >Emitted(41, 17) Source(1, 63) + SourceIndex(1) -6 >Emitted(41, 26) Source(1, 64) + SourceIndex(1) -7 >Emitted(41, 27) Source(1, 65) + SourceIndex(1) -8 >Emitted(41, 28) Source(1, 66) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(47, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(47, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(47, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(47, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(47, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(47, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(49, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(49, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(49, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(49, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(49, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(49, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":489,"kind":"emitHelpers","data":"typescript:read"},{"pos":490,"end":870,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":871,"end":1621,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]},"mapHash":"34350533098-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"112987183825-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 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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":255,"kind":"text"}],"mapHash":"-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"17976393265-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);","-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"downlevelIteration":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -emitHelpers: (0-489):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (490-870):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (871-1621) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { } - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-255) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 489, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 490, - "end": 870, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 871, - "end": 1621, - "kind": "text" - } - ], - "hash": "112987183825-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 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;\n//# sourceMappingURL=module.js.map", - "mapHash": "34350533098-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}", - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 255, - "kind": "text" - } - ], - "hash": "17976393265-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-34036075879-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "4690807917-const myGlob = 20;\nfunction libfile0Spread(...b: number[]) { }\nconst libfile0_ar = [20, 30];\nlibfile0Spread(10, ...libfile0_ar);", - "./file1.ts": "-2014796510-export const x = 10;function forlibfile1Rest() { }console.log(x);", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "downlevelIteration": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 4863 -} - 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 deleted file mode 100644 index 0b113abf2ab9d..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1657 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/app/file3.ts] -"myPrologue" -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 - } - ] -} - -//// [/src/lib/file0.ts] -"myPrologue" -const myGlob = 20; - -//// [/src/lib/file1.ts] -export const x = 10; - -//// [/src/lib/file2.ts] -"myPrologueFile" -export const y = 20; - -//// [/src/lib/global.ts] -"myPrologue3" -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" - ] -} - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:23 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 file 'src/lib/module.tsbuildinfo' does not exist - -[12:00:25 AM] Building project '/src/lib/tsconfig.json'... - -[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:35 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue" - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologueFile" - > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(9, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(9, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(9, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(9, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(9, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(9, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(13, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(16, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(16, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(16, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(16, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(16, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(16, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(18, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(18, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(18, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(18, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(18, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(18, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.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":510,"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":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"10375222825-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-2464680079-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9536729713-\"myPrologue\"\nconst myGlob = 20;","-10726455937-export const x = 10;","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (28-42):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (43-510) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.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": 510, - "kind": "text" - } - ], - "hash": "-2464680079-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\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;\n//# sourceMappingURL=module.js.map", - "mapHash": "10375222825-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}", - "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": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "./file1.ts": "-10726455937-export const x = 10;", - "./file2.ts": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "./global.ts": "7757520337-\"myPrologue3\"\nconst globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": true, - "target": 1 - }, - "outSignature": "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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 3423 -} - - - -Change:: incremental-declaration-doesnt-change -Input:: -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:39 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:41 AM] Building project '/src/lib/tsconfig.json'... - -[12:00:49 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:00:50 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(9, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(9, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(9, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(9, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(9, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(9, 20) Source(1, 21) + SourceIndex(2) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(10, 5) Source(1, 21) + SourceIndex(2) -2 >Emitted(10, 12) Source(1, 28) + SourceIndex(2) -3 >Emitted(10, 13) Source(1, 29) + SourceIndex(2) -4 >Emitted(10, 16) Source(1, 32) + SourceIndex(2) -5 >Emitted(10, 17) Source(1, 33) + SourceIndex(2) -6 >Emitted(10, 26) Source(1, 34) + SourceIndex(2) -7 >Emitted(10, 27) Source(1, 35) + SourceIndex(2) -8 >Emitted(10, 28) Source(1, 36) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(14, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(14, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(17, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(17, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(17, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(17, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(17, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(17, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(19, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(19, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(19, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(19, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(19, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(19, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.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":538,"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":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"-8068071797-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"36335357509-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9536729713-\"myPrologue\"\nconst myGlob = 20;","-4405159098-export const x = 10;console.log(x);","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (28-42):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (43-538) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.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": 538, - "kind": "text" - } - ], - "hash": "36335357509-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\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;\n//# sourceMappingURL=module.js.map", - "mapHash": "-8068071797-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}", - "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": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-38214306044-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "./file1.ts": "-4405159098-export const x = 10;console.log(x);", - "./file2.ts": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "./global.ts": "7757520337-\"myPrologue3\"\nconst globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": true, - "target": 1 - }, - "outSignature": "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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 3506 -} - - - -Change:: incremental-headers-change-without-dts-changes -Input:: -//// [/src/lib/file1.ts] -"myPrologue5" -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:54 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:00:55 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:56 AM] Building project '/src/lib/tsconfig.json'... - -[12:01:04 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:01:05 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >"myPrologue" - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologue5" - > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >"myPrologueFile" - > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) -2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) -3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) -4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) -5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) -6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) -7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,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;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologue5"; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue5" -3 > -1->Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -3 >Emitted(7, 19) Source(1, 14) + SourceIndex(2) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^-> -1-> - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(10, 5) Source(2, 14) + SourceIndex(2) -2 >Emitted(10, 13) Source(2, 14) + SourceIndex(2) -3 >Emitted(10, 14) Source(2, 15) + SourceIndex(2) -4 >Emitted(10, 17) Source(2, 18) + SourceIndex(2) -5 >Emitted(10, 19) Source(2, 20) + SourceIndex(2) -6 >Emitted(10, 20) Source(2, 21) + SourceIndex(2) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(11, 5) Source(2, 21) + SourceIndex(2) -2 >Emitted(11, 12) Source(2, 28) + SourceIndex(2) -3 >Emitted(11, 13) Source(2, 29) + SourceIndex(2) -4 >Emitted(11, 16) Source(2, 32) + SourceIndex(2) -5 >Emitted(11, 17) Source(2, 33) + SourceIndex(2) -6 >Emitted(11, 26) Source(2, 34) + SourceIndex(2) -7 >Emitted(11, 27) Source(2, 35) + SourceIndex(2) -8 >Emitted(11, 28) Source(2, 36) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> "myPrologueFile"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > "myPrologueFile" -3 > -1 >Emitted(15, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(15, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1->Emitted(18, 5) Source(2, 14) + SourceIndex(3) -2 >Emitted(18, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(18, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(18, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(18, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(18, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(20, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(20, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(20, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(20, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(20, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(20, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.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":557,"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":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]},"mapHash":"-19459258405-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,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;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}","hash":"-14270875946-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-36563998849-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","9536729713-\"myPrologue\"\nconst myGlob = 20;","-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);","16047001250-\"myPrologueFile\"\nexport const y = 20;","7757520337-\"myPrologue3\"\nconst globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":true,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (28-42):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (43-557) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.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": 557, - "kind": "text" - } - ], - "hash": "-14270875946-\"use strict\";\n\"myPrologue\";\n\"myPrologue3\";\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;\n//# sourceMappingURL=module.js.map", - "mapHash": "-19459258405-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"global.ts\",\"file1.ts\",\"file2.ts\"],\"names\":[],\"mappings\":\";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,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;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC\"}", - "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": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-36563998849-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "9536729713-\"myPrologue\"\nconst myGlob = 20;", - "./file1.ts": "-4813675172-\"myPrologue5\"\nexport const x = 10;console.log(x);", - "./file2.ts": "16047001250-\"myPrologueFile\"\nexport const y = 20;", - "./global.ts": "7757520337-\"myPrologue3\"\nconst globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": true, - "target": 1 - }, - "outSignature": "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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 3563 -} - 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 e1e40f687dafd..e2370d49b9551 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/prepend-reports-deprecation-error.js @@ -26,7 +26,6 @@ const myVar = 30; //// [/src/app/tsconfig.json] { "compilerOptions": { - "target": "es5", "module": "amd", "composite": true, @@ -78,27 +77,27 @@ const globalConst = 10; Output:: /lib/tsc --b /src/app --verbose -[12:00:17 AM] Projects in this build: +[12:00:16 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[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:17 AM] Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.tsbuildinfo' does not exist -[12:00:19 AM] Building project '/src/lib/tsconfig.json'... +[12:00:18 AM] Building project '/src/lib/tsconfig.json'... -[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:26 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:29 AM] Building project '/src/app/tsconfig.json'... +[12:00:27 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +src/app/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. -16 { +15 {    ~ -17 "path": "../lib", +16 "path": "../lib",   ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true +17 "prepend": true   ~~~~~~~~~~~~~~~~~~~~~ -19 } +18 }   ~~~~~ @@ -375,77 +374,10 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":445,"kind":"text"}],"mapHash":"15919942799-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-9556600741-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-445) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 445, - "kind": "text" - } - ], - "hash": "-9556600741-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "15919942799-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -488,7 +420,7 @@ declare const globalConst = 10; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2728 + "size": 1111 } @@ -502,27 +434,27 @@ export const x = 10;console.log(x); Output:: /lib/tsc --b /src/app --verbose -[12:00:33 AM] Projects in this build: +[12:00:31 AM] Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json -[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:32 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:35 AM] Building project '/src/lib/tsconfig.json'... +[12:00:33 AM] Building project '/src/lib/tsconfig.json'... -[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:40 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:44 AM] Building project '/src/app/tsconfig.json'... +[12:00:41 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +src/app/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. -16 { +15 {    ~ -17 "path": "../lib", +16 "path": "../lib",   ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true +17 "prepend": true   ~~~~~~~~~~~~~~~~~~~~~ -19 } +18 }   ~~~~~ @@ -699,78 +631,10 @@ sourceFile:global.ts >>>//# sourceMappingURL=module.js.map //// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":473,"kind":"text"}],"mapHash":"32224580248-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"7050136879-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":163,"kind":"text"}],"mapHash":"-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"27518228764-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-473) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-163) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/lib/module.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 473, - "kind": "text" - } - ], - "hash": "7050136879-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "32224580248-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 163, - "kind": "text" - } - ], - "hash": "27518228764-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-14214505027-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -813,6 +677,6 @@ declare const globalConst = 10; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2811 + "size": 1125 } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js deleted file mode 100644 index 605930f06fc91..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js +++ /dev/null @@ -1,834 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/app/file3.ts] -#!someshebang app file3 -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 - } - ] -} - -//// [/src/lib/file0.ts] -#!someshebang lib file0 -const myGlob = 20; - -//// [/src/lib/file1.ts] -#!someshebang lib file1 -export const x = 10; - -//// [/src/lib/file2.ts] -export const y = 20; - -//// [/src/lib/global.ts] -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" - ] -} - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:19 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[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:21 AM] Building project '/src/lib/tsconfig.json'... - -[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:31 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts] -#!someshebang lib file0 -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >#!someshebang lib file0 - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) -5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 >#!someshebang lib file1 - > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -#!someshebang lib file0 -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >#!someshebang lib file0 - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->#!someshebang lib file1 - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(7, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(7, 13) Source(2, 14) + SourceIndex(1) -3 >Emitted(7, 14) Source(2, 15) + SourceIndex(1) -4 >Emitted(7, 17) Source(2, 18) + SourceIndex(1) -5 >Emitted(7, 19) Source(2, 20) + SourceIndex(1) -6 >Emitted(7, 20) Source(2, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":24,"end":469,"kind":"text"}],"mapHash":"36962111119-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"8211547644-#!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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"text"}],"mapHash":"-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"10630132669-#!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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","7942086417-#!someshebang lib file0\nconst myGlob = 20;","378638433-#!someshebang lib file1\nexport const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (24-469) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (24-187) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 24, - "end": 469, - "kind": "text" - } - ], - "hash": "8211547644-#!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;\n//# sourceMappingURL=module.js.map", - "mapHash": "36962111119-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 24, - "end": 187, - "kind": "text" - } - ], - "hash": "10630132669-#!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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", - "./file1.ts": "378638433-#!someshebang lib file1\nexport const x = 10;", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 2851 -} - - - -Change:: incremental-declaration-doesnt-change -Input:: -//// [/src/lib/file1.ts] -#!someshebang lib file1 -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:35 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:37 AM] Building project '/src/lib/tsconfig.json'... - -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:00:46 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -#!someshebang lib file0 -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>#!someshebang lib file0 ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >#!someshebang lib file0 - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^-> -1->#!someshebang lib file1 - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(7, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(7, 13) Source(2, 14) + SourceIndex(1) -3 >Emitted(7, 14) Source(2, 15) + SourceIndex(1) -4 >Emitted(7, 17) Source(2, 18) + SourceIndex(1) -5 >Emitted(7, 19) Source(2, 20) + SourceIndex(1) -6 >Emitted(7, 20) Source(2, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(8, 5) Source(2, 21) + SourceIndex(1) -2 >Emitted(8, 12) Source(2, 28) + SourceIndex(1) -3 >Emitted(8, 13) Source(2, 29) + SourceIndex(1) -4 >Emitted(8, 16) Source(2, 32) + SourceIndex(1) -5 >Emitted(8, 17) Source(2, 33) + SourceIndex(1) -6 >Emitted(8, 26) Source(2, 34) + SourceIndex(1) -7 >Emitted(8, 27) Source(2, 35) + SourceIndex(1) -8 >Emitted(8, 28) Source(2, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(14, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(14, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(14, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(14, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(14, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(14, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":24,"end":497,"kind":"text"}],"mapHash":"15343768984-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-27747576240-#!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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":24,"end":187,"kind":"text"}],"mapHash":"-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"10630132669-#!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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","7942086417-#!someshebang lib file0\nconst myGlob = 20;","7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (24-497) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (24-187) -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 24, - "end": 497, - "kind": "text" - } - ], - "hash": "-27747576240-#!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;\n//# sourceMappingURL=module.js.map", - "mapHash": "15343768984-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 24, - "end": 187, - "kind": "text" - } - ], - "hash": "10630132669-#!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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-5431151811-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "7942086417-#!someshebang lib file0\nconst myGlob = 20;", - "./file1.ts": "7280727528-#!someshebang lib file1\nexport const x = 10;console.log(x);", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 2939 -} - diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js deleted file mode 100644 index 57a3adeea9fa3..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js +++ /dev/null @@ -1,7454 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/app/file3.ts] -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 - } - ] -} - -//// [/src/lib/file0.ts] -/*@internal*/ const myGlob = 20; - -//// [/src/lib/file1.ts] -export const x = 10; -export class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -export namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ export class internalC {} -/*@internal*/ export function internalfoo() {} -/*@internal*/ export namespace internalNamespace { export class someClass {} } -/*@internal*/ export namespace internalOther.something { export class someClass {} } -/*@internal*/ export import internalImport = internalNamespace.someClass; -/*@internal*/ export type internalType = internalC; -/*@internal*/ export const internalConst = 10; -/*@internal*/ export enum internalEnum { a, b, c } - -//// [/src/lib/file2.ts] -export const y = 20; - -//// [/src/lib/global.ts] -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" - ] -} - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:19 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[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:21 AM] Building project '/src/lib/tsconfig.json'... - -[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:31 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:17:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -17 { -   ~ -18 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -19 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -20 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts] -declare const myGlob = 20; -declare module "file1" { - export const x = 10; - export class normalC { - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); - } - export namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } - } - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >/*@internal*/ -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^^-> -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) ---- ->>> export class normalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^ -1-> - > -2 > export -3 > class -4 > normalC -1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) -2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) -3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) -4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) -5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) ---- ->>> method(): void; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) -2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) ---- ->>> get c(): number; -1->^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(8, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(8, 13) Source(6, 23) + SourceIndex(1) -3 >Emitted(8, 14) Source(6, 24) + SourceIndex(1) -4 >Emitted(8, 18) Source(7, 30) + SourceIndex(1) -5 >Emitted(8, 24) Source(7, 36) + SourceIndex(1) -6 >Emitted(8, 25) Source(6, 41) + SourceIndex(1) ---- ->>> set c(val: number); -1->^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(9, 9) Source(7, 19) + SourceIndex(1) -2 >Emitted(9, 13) Source(7, 23) + SourceIndex(1) -3 >Emitted(9, 14) Source(7, 24) + SourceIndex(1) -4 >Emitted(9, 15) Source(7, 25) + SourceIndex(1) -5 >Emitted(9, 20) Source(7, 30) + SourceIndex(1) -6 >Emitted(9, 26) Source(7, 36) + SourceIndex(1) -7 >Emitted(9, 28) Source(7, 41) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(10, 6) Source(8, 2) + SourceIndex(1) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(11, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(11, 11) Source(9, 7) + SourceIndex(1) -3 >Emitted(11, 22) Source(9, 18) + SourceIndex(1) -4 >Emitted(11, 29) Source(9, 25) + SourceIndex(1) -5 >Emitted(11, 30) Source(9, 26) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(12, 9) Source(10, 19) + SourceIndex(1) -2 >Emitted(12, 15) Source(10, 32) + SourceIndex(1) -3 >Emitted(12, 16) Source(10, 33) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 10) Source(10, 37) + SourceIndex(1) ---- ->>> function foo(): void; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(14, 9) Source(11, 19) + SourceIndex(1) -2 >Emitted(14, 18) Source(11, 35) + SourceIndex(1) -3 >Emitted(14, 21) Source(11, 38) + SourceIndex(1) -4 >Emitted(14, 30) Source(11, 43) + SourceIndex(1) ---- ->>> namespace someNamespace { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(15, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(15, 19) Source(12, 36) + SourceIndex(1) -3 >Emitted(15, 32) Source(12, 49) + SourceIndex(1) -4 >Emitted(15, 33) Source(12, 50) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 13) Source(12, 52) + SourceIndex(1) -2 >Emitted(16, 19) Source(12, 65) + SourceIndex(1) -3 >Emitted(16, 20) Source(12, 66) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(17, 14) Source(12, 69) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 10) Source(12, 71) + SourceIndex(1) ---- ->>> namespace someOther.something { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(19, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(19, 19) Source(13, 36) + SourceIndex(1) -3 >Emitted(19, 28) Source(13, 45) + SourceIndex(1) -4 >Emitted(19, 29) Source(13, 46) + SourceIndex(1) -5 >Emitted(19, 38) Source(13, 55) + SourceIndex(1) -6 >Emitted(19, 39) Source(13, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 13) Source(13, 58) + SourceIndex(1) -2 >Emitted(20, 19) Source(13, 71) + SourceIndex(1) -3 >Emitted(20, 28) Source(13, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(21, 14) Source(13, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 10) Source(13, 85) + SourceIndex(1) ---- ->>> export import someImport = someNamespace.C; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(23, 9) Source(14, 19) + SourceIndex(1) -2 >Emitted(23, 15) Source(14, 25) + SourceIndex(1) -3 >Emitted(23, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(23, 33) Source(14, 43) + SourceIndex(1) -5 >Emitted(23, 36) Source(14, 46) + SourceIndex(1) -6 >Emitted(23, 49) Source(14, 59) + SourceIndex(1) -7 >Emitted(23, 50) Source(14, 60) + SourceIndex(1) -8 >Emitted(23, 51) Source(14, 61) + SourceIndex(1) -9 >Emitted(23, 52) Source(14, 62) + SourceIndex(1) ---- ->>> type internalType = internalC; -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(24, 9) Source(15, 19) + SourceIndex(1) -2 >Emitted(24, 14) Source(15, 31) + SourceIndex(1) -3 >Emitted(24, 26) Source(15, 43) + SourceIndex(1) -4 >Emitted(24, 29) Source(15, 46) + SourceIndex(1) -5 >Emitted(24, 38) Source(15, 55) + SourceIndex(1) -6 >Emitted(24, 39) Source(15, 56) + SourceIndex(1) ---- ->>> const internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(25, 9) Source(16, 26) + SourceIndex(1) -2 >Emitted(25, 15) Source(16, 32) + SourceIndex(1) -3 >Emitted(25, 28) Source(16, 45) + SourceIndex(1) -4 >Emitted(25, 33) Source(16, 50) + SourceIndex(1) -5 >Emitted(25, 34) Source(16, 51) + SourceIndex(1) ---- ->>> enum internalEnum { -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(26, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(26, 14) Source(17, 31) + SourceIndex(1) -3 >Emitted(26, 26) Source(17, 43) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(27, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(27, 14) Source(17, 47) + SourceIndex(1) -3 >Emitted(27, 18) Source(17, 47) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(28, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(28, 14) Source(17, 50) + SourceIndex(1) -3 >Emitted(28, 18) Source(17, 50) + SourceIndex(1) ---- ->>> c = 2 -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(29, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(29, 14) Source(17, 53) + SourceIndex(1) -3 >Emitted(29, 18) Source(17, 53) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > } -1 >Emitted(30, 10) Source(17, 55) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 6) Source(18, 2) + SourceIndex(1) ---- ->>> export class internalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > class -4 > internalC -1->Emitted(32, 5) Source(19, 15) + SourceIndex(1) -2 >Emitted(32, 11) Source(19, 21) + SourceIndex(1) -3 >Emitted(32, 18) Source(19, 28) + SourceIndex(1) -4 >Emitted(32, 27) Source(19, 37) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 6) Source(19, 40) + SourceIndex(1) ---- ->>> export function internalfoo(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > function -4 > internalfoo -5 > () {} -1->Emitted(34, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(34, 11) Source(20, 21) + SourceIndex(1) -3 >Emitted(34, 21) Source(20, 31) + SourceIndex(1) -4 >Emitted(34, 32) Source(20, 42) + SourceIndex(1) -5 >Emitted(34, 41) Source(20, 47) + SourceIndex(1) ---- ->>> export namespace internalNamespace { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^ -1 > - >/*@internal*/ -2 > export -3 > namespace -4 > internalNamespace -5 > -1 >Emitted(35, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(35, 11) Source(21, 21) + SourceIndex(1) -3 >Emitted(35, 22) Source(21, 32) + SourceIndex(1) -4 >Emitted(35, 39) Source(21, 49) + SourceIndex(1) -5 >Emitted(35, 40) Source(21, 50) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 9) Source(21, 52) + SourceIndex(1) -2 >Emitted(36, 15) Source(21, 65) + SourceIndex(1) -3 >Emitted(36, 24) Source(21, 74) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(37, 10) Source(21, 77) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 6) Source(21, 79) + SourceIndex(1) ---- ->>> export namespace internalOther.something { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -1-> - >/*@internal*/ -2 > export -3 > namespace -4 > internalOther -5 > . -6 > something -7 > -1->Emitted(39, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(39, 11) Source(22, 21) + SourceIndex(1) -3 >Emitted(39, 22) Source(22, 32) + SourceIndex(1) -4 >Emitted(39, 35) Source(22, 45) + SourceIndex(1) -5 >Emitted(39, 36) Source(22, 46) + SourceIndex(1) -6 >Emitted(39, 45) Source(22, 55) + SourceIndex(1) -7 >Emitted(39, 46) Source(22, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 9) Source(22, 58) + SourceIndex(1) -2 >Emitted(40, 15) Source(22, 71) + SourceIndex(1) -3 >Emitted(40, 24) Source(22, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(41, 10) Source(22, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 6) Source(22, 85) + SourceIndex(1) ---- ->>> export import internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^ -9 > ^ -1-> - >/*@internal*/ -2 > export -3 > import -4 > internalImport -5 > = -6 > internalNamespace -7 > . -8 > someClass -9 > ; -1->Emitted(43, 5) Source(23, 15) + SourceIndex(1) -2 >Emitted(43, 11) Source(23, 21) + SourceIndex(1) -3 >Emitted(43, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(43, 33) Source(23, 43) + SourceIndex(1) -5 >Emitted(43, 36) Source(23, 46) + SourceIndex(1) -6 >Emitted(43, 53) Source(23, 63) + SourceIndex(1) -7 >Emitted(43, 54) Source(23, 64) + SourceIndex(1) -8 >Emitted(43, 63) Source(23, 73) + SourceIndex(1) -9 >Emitted(43, 64) Source(23, 74) + SourceIndex(1) ---- ->>> export type internalType = internalC; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > type -4 > internalType -5 > = -6 > internalC -7 > ; -1 >Emitted(44, 5) Source(24, 15) + SourceIndex(1) -2 >Emitted(44, 11) Source(24, 21) + SourceIndex(1) -3 >Emitted(44, 17) Source(24, 27) + SourceIndex(1) -4 >Emitted(44, 29) Source(24, 39) + SourceIndex(1) -5 >Emitted(44, 32) Source(24, 42) + SourceIndex(1) -6 >Emitted(44, 41) Source(24, 51) + SourceIndex(1) -7 >Emitted(44, 42) Source(24, 52) + SourceIndex(1) ---- ->>> export const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(45, 5) Source(25, 15) + SourceIndex(1) -2 >Emitted(45, 11) Source(25, 21) + SourceIndex(1) -3 >Emitted(45, 12) Source(25, 22) + SourceIndex(1) -4 >Emitted(45, 18) Source(25, 28) + SourceIndex(1) -5 >Emitted(45, 31) Source(25, 41) + SourceIndex(1) -6 >Emitted(45, 36) Source(25, 46) + SourceIndex(1) -7 >Emitted(45, 37) Source(25, 47) + SourceIndex(1) ---- ->>> export enum internalEnum { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 > export -3 > enum -4 > internalEnum -1 >Emitted(46, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(46, 11) Source(26, 21) + SourceIndex(1) -3 >Emitted(46, 17) Source(26, 27) + SourceIndex(1) -4 >Emitted(46, 29) Source(26, 39) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(47, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(47, 10) Source(26, 43) + SourceIndex(1) -3 >Emitted(47, 14) Source(26, 43) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(48, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(48, 10) Source(26, 46) + SourceIndex(1) -3 >Emitted(48, 14) Source(26, 46) + SourceIndex(1) ---- ->>> c = 2 -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(49, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(49, 10) Source(26, 49) + SourceIndex(1) -3 >Emitted(49, 14) Source(26, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(50, 6) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(53, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(53, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(53, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(53, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(53, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(53, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(53, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(55, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(55, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(55, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(55, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(55, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(55, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN || (exports.normalN = normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther || (exports.internalOther = internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum || (exports.internalEnum = internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(6, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(7, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(8, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(8, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(8, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(9, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(9, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(10, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(10, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(10, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(10, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(10, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(10, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(10, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(11, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(11, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(11, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(12, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(12, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(12, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(12, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(12, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(12, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(12, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(13, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(13, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(13, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(13, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(13, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(13, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(13, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(16, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(17, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(18, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(18, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(19, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(19, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(20, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(21, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(21, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(22, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(22, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(22, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(26, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(26, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(26, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(27, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(27, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(27, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(28, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(28, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(28, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(28, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(28, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(28, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(29, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(29, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(29, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(30, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(30, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(30, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(30, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(30, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(31, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(31, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(36, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(36, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(36, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(37, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(37, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(37, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(38, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(38, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(38, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(38, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(38, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(38, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(38, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(38, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(39, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(39, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(39, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(39, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(39, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(40, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(40, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(41, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(42, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(42, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(47, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(47, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(47, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(48, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(48, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(48, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(49, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(49, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(49, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(49, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(49, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(49, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(50, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(50, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(50, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(50, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(50, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(50, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(50, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(50, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(51, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(51, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(51, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(51, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(51, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(51, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(52, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(52, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(52, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(52, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(53, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(53, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(53, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(53, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(54, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(54, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(57, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(57, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(58, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(58, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(58, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(58, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(58, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(58, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(58, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(58, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN || (exports.normalN = normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(59, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(59, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(59, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(59, 38) Source(9, 18) + SourceIndex(1) -6 >Emitted(59, 45) Source(9, 25) + SourceIndex(1) -7 >Emitted(59, 53) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(60, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(60, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(60, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(61, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(64, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(64, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(64, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(64, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(65, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(65, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(66, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(66, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(66, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(66, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(66, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(66, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(66, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(67, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(67, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(68, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(68, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(68, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(68, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(68, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(68, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(69, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(69, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(69, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(70, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(71, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(73, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(74, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(74, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(74, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(74, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(75, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(75, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(75, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(75, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(76, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(76, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(76, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(76, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(76, 58) Source(21, 32) + SourceIndex(1) -6 >Emitted(76, 75) Source(21, 49) + SourceIndex(1) -7 >Emitted(76, 83) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(77, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(77, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(77, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(77, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(77, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(77, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(78, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(78, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(78, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(79, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(80, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(80, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(80, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(81, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(82, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(84, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(85, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(85, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(85, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(85, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(86, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(86, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(86, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(86, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(87, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(87, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(87, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(87, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(87, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther || (exports.internalOther = internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(88, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(88, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(88, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(88, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(88, 50) Source(22, 32) + SourceIndex(1) -6 >Emitted(88, 63) Source(22, 45) + SourceIndex(1) -7 >Emitted(88, 71) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(89, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(89, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(89, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(89, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(89, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(89, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(89, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(89, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(90, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(90, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(90, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(90, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(90, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(90, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(91, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(91, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(91, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(91, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(91, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(92, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(92, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(92, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(93, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(94, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(95, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(95, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(95, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum || (exports.internalEnum = internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1->Emitted(96, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(96, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(96, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(96, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(96, 48) Source(26, 27) + SourceIndex(1) -6 >Emitted(96, 60) Source(26, 39) + SourceIndex(1) -7 >Emitted(96, 68) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(102, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(102, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(102, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(102, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(102, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(102, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(104, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(104, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(104, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(104, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(104, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(104, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4246,"kind":"text"}],"mapHash":"35317861087-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-61647424230-/*@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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":27,"end":104,"kind":"text"},{"pos":104,"end":225,"kind":"internal"},{"pos":226,"end":263,"kind":"text"},{"pos":263,"end":713,"kind":"internal"},{"pos":714,"end":720,"kind":"text"},{"pos":720,"end":1191,"kind":"internal"},{"pos":1192,"end":1278,"kind":"text"}],"mapHash":"-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-60625246569-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4331635807-/*@internal*/ const myGlob = 20;","21054576574-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace 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*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4246) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN || (exports.normalN = normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther || (exports.internalOther = internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum || (exports.internalEnum = internalEnum = {})); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -internal: (0-26) -declare const myGlob = 20; ----------------------------------------------------------------------- -text: (27-104) -declare module "file1" { - export const x = 10; - export class normalC { - ----------------------------------------------------------------------- -internal: (104-225) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (226-263) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (263-713) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (714-720) - } - ----------------------------------------------------------------------- -internal: (720-1191) - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (1192-1278) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4246, - "kind": "text" - } - ], - "hash": "-61647424230-/*@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;\n//# sourceMappingURL=module.js.map", - "mapHash": "35317861087-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 27, - "end": 104, - "kind": "text" - }, - { - "pos": 104, - "end": 225, - "kind": "internal" - }, - { - "pos": 226, - "end": 263, - "kind": "text" - }, - { - "pos": 263, - "end": 713, - "kind": "internal" - }, - { - "pos": 714, - "end": 720, - "kind": "text" - }, - { - "pos": 720, - "end": 1191, - "kind": "internal" - }, - { - "pos": 1192, - "end": 1278, - "kind": "text" - } - ], - "hash": "-60625246569-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "4331635807-/*@internal*/ const myGlob = 20;", - "./file1.ts": "21054576574-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace 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*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 13166 -} - - - -Change:: incremental-declaration-doesnt-change -Input:: -//// [/src/lib/file1.ts] -export const x = 10; -export class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -export namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ export class internalC {} -/*@internal*/ export function internalfoo() {} -/*@internal*/ export namespace internalNamespace { export class someClass {} } -/*@internal*/ export namespace internalOther.something { export class someClass {} } -/*@internal*/ export import internalImport = internalNamespace.someClass; -/*@internal*/ export type internalType = internalC; -/*@internal*/ export const internalConst = 10; -/*@internal*/ export enum internalEnum { a, b, c }console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:35 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:37 AM] Building project '/src/lib/tsconfig.json'... - -[12:00:45 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:00:46 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:17:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -17 { -   ~ -18 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -19 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -20 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN || (exports.normalN = normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther || (exports.internalOther = internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum || (exports.internalEnum = internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(6, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(7, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(8, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(8, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(8, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(9, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(9, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(10, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(10, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(10, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(10, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(10, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(10, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(10, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(11, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(11, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(11, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(12, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(12, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(12, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(12, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(12, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(12, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(12, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(13, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(13, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(13, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(13, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(13, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(13, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(13, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(16, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(17, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(18, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(18, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(19, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(19, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(20, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(21, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(21, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(22, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(22, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(22, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(26, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(26, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(26, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(27, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(27, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(27, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(28, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(28, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(28, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(28, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(28, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(28, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(29, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(29, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(29, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(30, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(30, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(30, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(30, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(30, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(31, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(31, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(36, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(36, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(36, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(37, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(37, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(37, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(38, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(38, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(38, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(38, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(38, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(38, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(38, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(38, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(39, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(39, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(39, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(39, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(39, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(40, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(40, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(41, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(42, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(42, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(47, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(47, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(47, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(48, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(48, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(48, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(49, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(49, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(49, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(49, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(49, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(49, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(50, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(50, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(50, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(50, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(50, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(50, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(50, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(50, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(51, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(51, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(51, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(51, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(51, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(51, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(52, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(52, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(52, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(52, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(53, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(53, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(53, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(53, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(54, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(54, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(57, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(57, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(58, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(58, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(58, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(58, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(58, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(58, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(58, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(58, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN || (exports.normalN = normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(59, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(59, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(59, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(59, 38) Source(9, 18) + SourceIndex(1) -6 >Emitted(59, 45) Source(9, 25) + SourceIndex(1) -7 >Emitted(59, 53) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(60, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(60, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(60, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(61, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(64, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(64, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(64, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(64, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(65, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(65, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(66, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(66, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(66, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(66, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(66, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(66, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(66, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(67, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(67, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(68, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(68, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(68, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(68, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(68, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(68, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(69, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(69, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(69, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(70, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(71, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(73, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(74, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(74, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(74, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(74, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(75, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(75, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(75, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(75, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(76, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(76, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(76, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(76, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(76, 58) Source(21, 32) + SourceIndex(1) -6 >Emitted(76, 75) Source(21, 49) + SourceIndex(1) -7 >Emitted(76, 83) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(77, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(77, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(77, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(77, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(77, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(77, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(78, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(78, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(78, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(79, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(80, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(80, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(80, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(81, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(82, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(84, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(85, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(85, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(85, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(85, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(86, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(86, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(86, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(86, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(87, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(87, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(87, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(87, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(87, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther || (exports.internalOther = internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(88, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(88, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(88, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(88, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(88, 50) Source(22, 32) + SourceIndex(1) -6 >Emitted(88, 63) Source(22, 45) + SourceIndex(1) -7 >Emitted(88, 71) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(89, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(89, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(89, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(89, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(89, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(89, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(89, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(89, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(90, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(90, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(90, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(90, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(90, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(90, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(91, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(91, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(91, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(91, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(91, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(92, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(92, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(92, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(93, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(94, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(95, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(95, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(95, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum || (exports.internalEnum = internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1->Emitted(96, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(96, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(96, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(96, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(96, 48) Source(26, 27) + SourceIndex(1) -6 >Emitted(96, 60) Source(26, 39) + SourceIndex(1) -7 >Emitted(96, 68) Source(26, 51) + SourceIndex(1) ---- ->>> console.log(exports.x); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1 > -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1 >Emitted(97, 5) Source(26, 51) + SourceIndex(1) -2 >Emitted(97, 12) Source(26, 58) + SourceIndex(1) -3 >Emitted(97, 13) Source(26, 59) + SourceIndex(1) -4 >Emitted(97, 16) Source(26, 62) + SourceIndex(1) -5 >Emitted(97, 17) Source(26, 63) + SourceIndex(1) -6 >Emitted(97, 26) Source(26, 64) + SourceIndex(1) -7 >Emitted(97, 27) Source(26, 65) + SourceIndex(1) -8 >Emitted(97, 28) Source(26, 66) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(103, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(105, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(105, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4274,"kind":"text"}],"mapHash":"31681607841-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-22121521554-/*@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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":27,"end":104,"kind":"text"},{"pos":104,"end":225,"kind":"internal"},{"pos":226,"end":263,"kind":"text"},{"pos":263,"end":713,"kind":"internal"},{"pos":714,"end":720,"kind":"text"},{"pos":720,"end":1191,"kind":"internal"},{"pos":1192,"end":1278,"kind":"text"}],"mapHash":"-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-60625246569-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4331635807-/*@internal*/ const myGlob = 20;","15501672357-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace 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*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4274) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN || (exports.normalN = normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther || (exports.internalOther = internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum || (exports.internalEnum = internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -internal: (0-26) -declare const myGlob = 20; ----------------------------------------------------------------------- -text: (27-104) -declare module "file1" { - export const x = 10; - export class normalC { - ----------------------------------------------------------------------- -internal: (104-225) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (226-263) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (263-713) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (714-720) - } - ----------------------------------------------------------------------- -internal: (720-1191) - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (1192-1278) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4274, - "kind": "text" - } - ], - "hash": "-22121521554-/*@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;\n//# sourceMappingURL=module.js.map", - "mapHash": "31681607841-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 27, - "end": 104, - "kind": "text" - }, - { - "pos": 104, - "end": 225, - "kind": "internal" - }, - { - "pos": 226, - "end": 263, - "kind": "text" - }, - { - "pos": 263, - "end": 713, - "kind": "internal" - }, - { - "pos": 714, - "end": 720, - "kind": "text" - }, - { - "pos": 720, - "end": 1191, - "kind": "internal" - }, - { - "pos": 1192, - "end": 1278, - "kind": "text" - } - ], - "hash": "-60625246569-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "-20111650778-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "4331635807-/*@internal*/ const myGlob = 20;", - "./file1.ts": "15501672357-export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace 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*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 13250 -} - - - -Change:: incremental-headers-change-without-dts-changes -Input:: -//// [/src/lib/file1.ts] -/*@internal*/ export const x = 10; -export class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -export namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ export class internalC {} -/*@internal*/ export function internalfoo() {} -/*@internal*/ export namespace internalNamespace { export class someClass {} } -/*@internal*/ export namespace internalOther.something { export class someClass {} } -/*@internal*/ export import internalImport = internalNamespace.someClass; -/*@internal*/ export type internalType = internalC; -/*@internal*/ export const internalConst = 10; -/*@internal*/ export enum internalEnum { a, b, c }console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:50 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:00:51 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:52 AM] Building project '/src/lib/tsconfig.json'... - -[12:01:00 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:01:01 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:17:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -17 { -   ~ -18 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -19 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -20 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 >/*@internal*/ -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) -5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) -6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -8 > ^^-> -1 >/*@internal*/ -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(3, 5) Source(1, 15) + SourceIndex(1) -2 >Emitted(3, 11) Source(1, 21) + SourceIndex(1) -3 >Emitted(3, 12) Source(1, 22) + SourceIndex(1) -4 >Emitted(3, 18) Source(1, 28) + SourceIndex(1) -5 >Emitted(3, 19) Source(1, 29) + SourceIndex(1) -6 >Emitted(3, 24) Source(1, 34) + SourceIndex(1) -7 >Emitted(3, 25) Source(1, 35) + SourceIndex(1) ---- ->>> export class normalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^ -1-> - > -2 > export -3 > class -4 > normalC -1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) -4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) -2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) -3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) -4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) -5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) ---- ->>> method(): void; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) -2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) ---- ->>> get c(): number; -1->^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(8, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(8, 13) Source(6, 23) + SourceIndex(1) -3 >Emitted(8, 14) Source(6, 24) + SourceIndex(1) -4 >Emitted(8, 18) Source(7, 30) + SourceIndex(1) -5 >Emitted(8, 24) Source(7, 36) + SourceIndex(1) -6 >Emitted(8, 25) Source(6, 41) + SourceIndex(1) ---- ->>> set c(val: number); -1->^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(9, 9) Source(7, 19) + SourceIndex(1) -2 >Emitted(9, 13) Source(7, 23) + SourceIndex(1) -3 >Emitted(9, 14) Source(7, 24) + SourceIndex(1) -4 >Emitted(9, 15) Source(7, 25) + SourceIndex(1) -5 >Emitted(9, 20) Source(7, 30) + SourceIndex(1) -6 >Emitted(9, 26) Source(7, 36) + SourceIndex(1) -7 >Emitted(9, 28) Source(7, 41) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(10, 6) Source(8, 2) + SourceIndex(1) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(11, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(11, 11) Source(9, 7) + SourceIndex(1) -3 >Emitted(11, 22) Source(9, 18) + SourceIndex(1) -4 >Emitted(11, 29) Source(9, 25) + SourceIndex(1) -5 >Emitted(11, 30) Source(9, 26) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(12, 9) Source(10, 19) + SourceIndex(1) -2 >Emitted(12, 15) Source(10, 32) + SourceIndex(1) -3 >Emitted(12, 16) Source(10, 33) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 10) Source(10, 37) + SourceIndex(1) ---- ->>> function foo(): void; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(14, 9) Source(11, 19) + SourceIndex(1) -2 >Emitted(14, 18) Source(11, 35) + SourceIndex(1) -3 >Emitted(14, 21) Source(11, 38) + SourceIndex(1) -4 >Emitted(14, 30) Source(11, 43) + SourceIndex(1) ---- ->>> namespace someNamespace { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(15, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(15, 19) Source(12, 36) + SourceIndex(1) -3 >Emitted(15, 32) Source(12, 49) + SourceIndex(1) -4 >Emitted(15, 33) Source(12, 50) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 13) Source(12, 52) + SourceIndex(1) -2 >Emitted(16, 19) Source(12, 65) + SourceIndex(1) -3 >Emitted(16, 20) Source(12, 66) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(17, 14) Source(12, 69) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 10) Source(12, 71) + SourceIndex(1) ---- ->>> namespace someOther.something { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(19, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(19, 19) Source(13, 36) + SourceIndex(1) -3 >Emitted(19, 28) Source(13, 45) + SourceIndex(1) -4 >Emitted(19, 29) Source(13, 46) + SourceIndex(1) -5 >Emitted(19, 38) Source(13, 55) + SourceIndex(1) -6 >Emitted(19, 39) Source(13, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 13) Source(13, 58) + SourceIndex(1) -2 >Emitted(20, 19) Source(13, 71) + SourceIndex(1) -3 >Emitted(20, 28) Source(13, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(21, 14) Source(13, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 10) Source(13, 85) + SourceIndex(1) ---- ->>> export import someImport = someNamespace.C; -1->^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(23, 9) Source(14, 19) + SourceIndex(1) -2 >Emitted(23, 15) Source(14, 25) + SourceIndex(1) -3 >Emitted(23, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(23, 33) Source(14, 43) + SourceIndex(1) -5 >Emitted(23, 36) Source(14, 46) + SourceIndex(1) -6 >Emitted(23, 49) Source(14, 59) + SourceIndex(1) -7 >Emitted(23, 50) Source(14, 60) + SourceIndex(1) -8 >Emitted(23, 51) Source(14, 61) + SourceIndex(1) -9 >Emitted(23, 52) Source(14, 62) + SourceIndex(1) ---- ->>> type internalType = internalC; -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(24, 9) Source(15, 19) + SourceIndex(1) -2 >Emitted(24, 14) Source(15, 31) + SourceIndex(1) -3 >Emitted(24, 26) Source(15, 43) + SourceIndex(1) -4 >Emitted(24, 29) Source(15, 46) + SourceIndex(1) -5 >Emitted(24, 38) Source(15, 55) + SourceIndex(1) -6 >Emitted(24, 39) Source(15, 56) + SourceIndex(1) ---- ->>> const internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(25, 9) Source(16, 26) + SourceIndex(1) -2 >Emitted(25, 15) Source(16, 32) + SourceIndex(1) -3 >Emitted(25, 28) Source(16, 45) + SourceIndex(1) -4 >Emitted(25, 33) Source(16, 50) + SourceIndex(1) -5 >Emitted(25, 34) Source(16, 51) + SourceIndex(1) ---- ->>> enum internalEnum { -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(26, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(26, 14) Source(17, 31) + SourceIndex(1) -3 >Emitted(26, 26) Source(17, 43) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(27, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(27, 14) Source(17, 47) + SourceIndex(1) -3 >Emitted(27, 18) Source(17, 47) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(28, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(28, 14) Source(17, 50) + SourceIndex(1) -3 >Emitted(28, 18) Source(17, 50) + SourceIndex(1) ---- ->>> c = 2 -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(29, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(29, 14) Source(17, 53) + SourceIndex(1) -3 >Emitted(29, 18) Source(17, 53) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > } -1 >Emitted(30, 10) Source(17, 55) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 6) Source(18, 2) + SourceIndex(1) ---- ->>> export class internalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > class -4 > internalC -1->Emitted(32, 5) Source(19, 15) + SourceIndex(1) -2 >Emitted(32, 11) Source(19, 21) + SourceIndex(1) -3 >Emitted(32, 18) Source(19, 28) + SourceIndex(1) -4 >Emitted(32, 27) Source(19, 37) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 6) Source(19, 40) + SourceIndex(1) ---- ->>> export function internalfoo(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > function -4 > internalfoo -5 > () {} -1->Emitted(34, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(34, 11) Source(20, 21) + SourceIndex(1) -3 >Emitted(34, 21) Source(20, 31) + SourceIndex(1) -4 >Emitted(34, 32) Source(20, 42) + SourceIndex(1) -5 >Emitted(34, 41) Source(20, 47) + SourceIndex(1) ---- ->>> export namespace internalNamespace { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^ -1 > - >/*@internal*/ -2 > export -3 > namespace -4 > internalNamespace -5 > -1 >Emitted(35, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(35, 11) Source(21, 21) + SourceIndex(1) -3 >Emitted(35, 22) Source(21, 32) + SourceIndex(1) -4 >Emitted(35, 39) Source(21, 49) + SourceIndex(1) -5 >Emitted(35, 40) Source(21, 50) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 9) Source(21, 52) + SourceIndex(1) -2 >Emitted(36, 15) Source(21, 65) + SourceIndex(1) -3 >Emitted(36, 24) Source(21, 74) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(37, 10) Source(21, 77) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 6) Source(21, 79) + SourceIndex(1) ---- ->>> export namespace internalOther.something { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -1-> - >/*@internal*/ -2 > export -3 > namespace -4 > internalOther -5 > . -6 > something -7 > -1->Emitted(39, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(39, 11) Source(22, 21) + SourceIndex(1) -3 >Emitted(39, 22) Source(22, 32) + SourceIndex(1) -4 >Emitted(39, 35) Source(22, 45) + SourceIndex(1) -5 >Emitted(39, 36) Source(22, 46) + SourceIndex(1) -6 >Emitted(39, 45) Source(22, 55) + SourceIndex(1) -7 >Emitted(39, 46) Source(22, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 9) Source(22, 58) + SourceIndex(1) -2 >Emitted(40, 15) Source(22, 71) + SourceIndex(1) -3 >Emitted(40, 24) Source(22, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(41, 10) Source(22, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 6) Source(22, 85) + SourceIndex(1) ---- ->>> export import internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^^^^^^^^^ -9 > ^ -1-> - >/*@internal*/ -2 > export -3 > import -4 > internalImport -5 > = -6 > internalNamespace -7 > . -8 > someClass -9 > ; -1->Emitted(43, 5) Source(23, 15) + SourceIndex(1) -2 >Emitted(43, 11) Source(23, 21) + SourceIndex(1) -3 >Emitted(43, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(43, 33) Source(23, 43) + SourceIndex(1) -5 >Emitted(43, 36) Source(23, 46) + SourceIndex(1) -6 >Emitted(43, 53) Source(23, 63) + SourceIndex(1) -7 >Emitted(43, 54) Source(23, 64) + SourceIndex(1) -8 >Emitted(43, 63) Source(23, 73) + SourceIndex(1) -9 >Emitted(43, 64) Source(23, 74) + SourceIndex(1) ---- ->>> export type internalType = internalC; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > type -4 > internalType -5 > = -6 > internalC -7 > ; -1 >Emitted(44, 5) Source(24, 15) + SourceIndex(1) -2 >Emitted(44, 11) Source(24, 21) + SourceIndex(1) -3 >Emitted(44, 17) Source(24, 27) + SourceIndex(1) -4 >Emitted(44, 29) Source(24, 39) + SourceIndex(1) -5 >Emitted(44, 32) Source(24, 42) + SourceIndex(1) -6 >Emitted(44, 41) Source(24, 51) + SourceIndex(1) -7 >Emitted(44, 42) Source(24, 52) + SourceIndex(1) ---- ->>> export const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - >/*@internal*/ -2 > export -3 > -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(45, 5) Source(25, 15) + SourceIndex(1) -2 >Emitted(45, 11) Source(25, 21) + SourceIndex(1) -3 >Emitted(45, 12) Source(25, 22) + SourceIndex(1) -4 >Emitted(45, 18) Source(25, 28) + SourceIndex(1) -5 >Emitted(45, 31) Source(25, 41) + SourceIndex(1) -6 >Emitted(45, 36) Source(25, 46) + SourceIndex(1) -7 >Emitted(45, 37) Source(25, 47) + SourceIndex(1) ---- ->>> export enum internalEnum { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 > export -3 > enum -4 > internalEnum -1 >Emitted(46, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(46, 11) Source(26, 21) + SourceIndex(1) -3 >Emitted(46, 17) Source(26, 27) + SourceIndex(1) -4 >Emitted(46, 29) Source(26, 39) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(47, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(47, 10) Source(26, 43) + SourceIndex(1) -3 >Emitted(47, 14) Source(26, 43) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(48, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(48, 10) Source(26, 46) + SourceIndex(1) -3 >Emitted(48, 14) Source(26, 46) + SourceIndex(1) ---- ->>> c = 2 -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(49, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(49, 10) Source(26, 49) + SourceIndex(1) -3 >Emitted(49, 14) Source(26, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(50, 6) Source(26, 51) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(53, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(53, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(53, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(53, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(53, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(53, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(53, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(55, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(55, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(55, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(55, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(55, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(55, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - /*@internal*/ exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN || (exports.normalN = normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther || (exports.internalOther = internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum || (exports.internalEnum = internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/*@internal*/ var myGlob = 20; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >/*@internal*/ -3 > -4 > const -5 > myGlob -6 > = -7 > 20 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) -5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) -7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) -8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> /*@internal*/ exports.x = 10; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^ -6 > ^^^ -7 > ^^ -8 > ^ -9 > ^^^^^^^^^^^^^-> -1-> -2 > /*@internal*/ -3 > export const -4 > -5 > x -6 > = -7 > 10 -8 > ; -1->Emitted(6, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 18) Source(1, 14) + SourceIndex(1) -3 >Emitted(6, 19) Source(1, 28) + SourceIndex(1) -4 >Emitted(6, 27) Source(1, 28) + SourceIndex(1) -5 >Emitted(6, 28) Source(1, 29) + SourceIndex(1) -6 >Emitted(6, 31) Source(1, 32) + SourceIndex(1) -7 >Emitted(6, 33) Source(1, 34) + SourceIndex(1) -8 >Emitted(6, 34) Source(1, 35) + SourceIndex(1) ---- ->>> var normalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -1->Emitted(7, 5) Source(2, 1) + SourceIndex(1) ---- ->>> /*@internal*/ function normalC() { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->export class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(8, 9) Source(3, 5) + SourceIndex(1) -2 >Emitted(8, 22) Source(3, 18) + SourceIndex(1) -3 >Emitted(8, 23) Source(3, 19) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(9, 9) Source(3, 35) + SourceIndex(1) -2 >Emitted(9, 10) Source(3, 36) + SourceIndex(1) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(10, 9) Source(5, 5) + SourceIndex(1) -2 >Emitted(10, 22) Source(5, 18) + SourceIndex(1) -3 >Emitted(10, 23) Source(5, 19) + SourceIndex(1) -4 >Emitted(10, 47) Source(5, 25) + SourceIndex(1) -5 >Emitted(10, 50) Source(5, 19) + SourceIndex(1) -6 >Emitted(10, 64) Source(5, 30) + SourceIndex(1) -7 >Emitted(10, 65) Source(5, 31) + SourceIndex(1) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(11, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(11, 31) Source(6, 23) + SourceIndex(1) -3 >Emitted(11, 53) Source(6, 24) + SourceIndex(1) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(12, 13) Source(6, 5) + SourceIndex(1) -2 >Emitted(12, 26) Source(6, 18) + SourceIndex(1) -3 >Emitted(12, 32) Source(6, 19) + SourceIndex(1) -4 >Emitted(12, 46) Source(6, 29) + SourceIndex(1) -5 >Emitted(12, 53) Source(6, 36) + SourceIndex(1) -6 >Emitted(12, 55) Source(6, 38) + SourceIndex(1) -7 >Emitted(12, 56) Source(6, 39) + SourceIndex(1) -8 >Emitted(12, 57) Source(6, 40) + SourceIndex(1) -9 >Emitted(12, 58) Source(6, 41) + SourceIndex(1) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(13, 13) Source(7, 5) + SourceIndex(1) -2 >Emitted(13, 26) Source(7, 18) + SourceIndex(1) -3 >Emitted(13, 32) Source(7, 19) + SourceIndex(1) -4 >Emitted(13, 42) Source(7, 25) + SourceIndex(1) -5 >Emitted(13, 45) Source(7, 36) + SourceIndex(1) -6 >Emitted(13, 49) Source(7, 40) + SourceIndex(1) -7 >Emitted(13, 50) Source(7, 41) + SourceIndex(1) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(16, 12) Source(6, 41) + SourceIndex(1) ---- ->>> return normalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(17, 9) Source(8, 1) + SourceIndex(1) -2 >Emitted(17, 23) Source(8, 2) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(18, 5) Source(8, 1) + SourceIndex(1) -2 >Emitted(18, 6) Source(8, 2) + SourceIndex(1) -3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(18, 10) Source(8, 2) + SourceIndex(1) ---- ->>> exports.normalC = normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ -1-> -2 > normalC -1->Emitted(19, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(19, 31) Source(2, 21) + SourceIndex(1) ---- ->>> var normalN; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} - > -2 > export namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(20, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(20, 9) Source(9, 18) + SourceIndex(1) -3 >Emitted(20, 16) Source(9, 25) + SourceIndex(1) -4 >Emitted(20, 17) Source(18, 2) + SourceIndex(1) ---- ->>> (function (normalN) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export namespace -3 > normalN -1->Emitted(21, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(21, 16) Source(9, 18) + SourceIndex(1) -3 >Emitted(21, 23) Source(9, 25) + SourceIndex(1) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(22, 9) Source(10, 5) + SourceIndex(1) -2 >Emitted(22, 22) Source(10, 18) + SourceIndex(1) -3 >Emitted(22, 23) Source(10, 19) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 13) Source(10, 19) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(24, 14) Source(10, 37) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 13) Source(10, 36) + SourceIndex(1) -2 >Emitted(25, 21) Source(10, 37) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 9) Source(10, 36) + SourceIndex(1) -2 >Emitted(26, 10) Source(10, 37) + SourceIndex(1) -3 >Emitted(26, 10) Source(10, 19) + SourceIndex(1) -4 >Emitted(26, 14) Source(10, 37) + SourceIndex(1) ---- ->>> normalN.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 9) Source(10, 32) + SourceIndex(1) -2 >Emitted(27, 18) Source(10, 33) + SourceIndex(1) -3 >Emitted(27, 22) Source(10, 37) + SourceIndex(1) -4 >Emitted(27, 23) Source(10, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function foo() { } -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 9) Source(11, 5) + SourceIndex(1) -2 >Emitted(28, 22) Source(11, 18) + SourceIndex(1) -3 >Emitted(28, 23) Source(11, 19) + SourceIndex(1) -4 >Emitted(28, 32) Source(11, 35) + SourceIndex(1) -5 >Emitted(28, 35) Source(11, 38) + SourceIndex(1) -6 >Emitted(28, 40) Source(11, 42) + SourceIndex(1) -7 >Emitted(28, 41) Source(11, 43) + SourceIndex(1) ---- ->>> normalN.foo = foo; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 9) Source(11, 35) + SourceIndex(1) -2 >Emitted(29, 20) Source(11, 38) + SourceIndex(1) -3 >Emitted(29, 26) Source(11, 43) + SourceIndex(1) -4 >Emitted(29, 27) Source(11, 43) + SourceIndex(1) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 9) Source(12, 5) + SourceIndex(1) -2 >Emitted(30, 22) Source(12, 18) + SourceIndex(1) -3 >Emitted(30, 23) Source(12, 19) + SourceIndex(1) -4 >Emitted(30, 27) Source(12, 36) + SourceIndex(1) -5 >Emitted(30, 40) Source(12, 49) + SourceIndex(1) -6 >Emitted(30, 41) Source(12, 71) + SourceIndex(1) ---- ->>> (function (someNamespace) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(31, 20) Source(12, 36) + SourceIndex(1) -3 >Emitted(31, 33) Source(12, 49) + SourceIndex(1) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 13) Source(12, 52) + SourceIndex(1) ---- ->>> function C() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 17) Source(12, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(34, 18) Source(12, 69) + SourceIndex(1) ---- ->>> return C; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 17) Source(12, 68) + SourceIndex(1) -2 >Emitted(35, 25) Source(12, 69) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 13) Source(12, 68) + SourceIndex(1) -2 >Emitted(36, 14) Source(12, 69) + SourceIndex(1) -3 >Emitted(36, 14) Source(12, 52) + SourceIndex(1) -4 >Emitted(36, 18) Source(12, 69) + SourceIndex(1) ---- ->>> someNamespace.C = C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 13) Source(12, 65) + SourceIndex(1) -2 >Emitted(37, 28) Source(12, 66) + SourceIndex(1) -3 >Emitted(37, 32) Source(12, 69) + SourceIndex(1) -4 >Emitted(37, 33) Source(12, 69) + SourceIndex(1) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 9) Source(12, 70) + SourceIndex(1) -2 >Emitted(38, 10) Source(12, 71) + SourceIndex(1) -3 >Emitted(38, 12) Source(12, 36) + SourceIndex(1) -4 >Emitted(38, 25) Source(12, 49) + SourceIndex(1) -5 >Emitted(38, 28) Source(12, 36) + SourceIndex(1) -6 >Emitted(38, 49) Source(12, 49) + SourceIndex(1) -7 >Emitted(38, 54) Source(12, 36) + SourceIndex(1) -8 >Emitted(38, 75) Source(12, 49) + SourceIndex(1) -9 >Emitted(38, 83) Source(12, 71) + SourceIndex(1) ---- ->>> /*@internal*/ var someOther; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 9) Source(13, 5) + SourceIndex(1) -2 >Emitted(39, 22) Source(13, 18) + SourceIndex(1) -3 >Emitted(39, 23) Source(13, 19) + SourceIndex(1) -4 >Emitted(39, 27) Source(13, 36) + SourceIndex(1) -5 >Emitted(39, 36) Source(13, 45) + SourceIndex(1) -6 >Emitted(39, 37) Source(13, 85) + SourceIndex(1) ---- ->>> (function (someOther) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(40, 20) Source(13, 36) + SourceIndex(1) -3 >Emitted(40, 29) Source(13, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(41, 17) Source(13, 46) + SourceIndex(1) -3 >Emitted(41, 26) Source(13, 55) + SourceIndex(1) -4 >Emitted(41, 27) Source(13, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 13) Source(13, 46) + SourceIndex(1) -2 >Emitted(42, 24) Source(13, 46) + SourceIndex(1) -3 >Emitted(42, 33) Source(13, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 17) Source(13, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 21) Source(13, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(45, 22) Source(13, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 21) Source(13, 82) + SourceIndex(1) -2 >Emitted(46, 37) Source(13, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 17) Source(13, 82) + SourceIndex(1) -2 >Emitted(47, 18) Source(13, 83) + SourceIndex(1) -3 >Emitted(47, 18) Source(13, 58) + SourceIndex(1) -4 >Emitted(47, 22) Source(13, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 17) Source(13, 71) + SourceIndex(1) -2 >Emitted(48, 36) Source(13, 80) + SourceIndex(1) -3 >Emitted(48, 48) Source(13, 83) + SourceIndex(1) -4 >Emitted(48, 49) Source(13, 83) + SourceIndex(1) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 13) Source(13, 84) + SourceIndex(1) -2 >Emitted(49, 14) Source(13, 85) + SourceIndex(1) -3 >Emitted(49, 16) Source(13, 46) + SourceIndex(1) -4 >Emitted(49, 25) Source(13, 55) + SourceIndex(1) -5 >Emitted(49, 28) Source(13, 46) + SourceIndex(1) -6 >Emitted(49, 47) Source(13, 55) + SourceIndex(1) -7 >Emitted(49, 52) Source(13, 46) + SourceIndex(1) -8 >Emitted(49, 71) Source(13, 55) + SourceIndex(1) -9 >Emitted(49, 79) Source(13, 85) + SourceIndex(1) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 9) Source(13, 84) + SourceIndex(1) -2 >Emitted(50, 10) Source(13, 85) + SourceIndex(1) -3 >Emitted(50, 12) Source(13, 36) + SourceIndex(1) -4 >Emitted(50, 21) Source(13, 45) + SourceIndex(1) -5 >Emitted(50, 24) Source(13, 36) + SourceIndex(1) -6 >Emitted(50, 41) Source(13, 45) + SourceIndex(1) -7 >Emitted(50, 46) Source(13, 36) + SourceIndex(1) -8 >Emitted(50, 63) Source(13, 45) + SourceIndex(1) -9 >Emitted(50, 71) Source(13, 85) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 9) Source(14, 5) + SourceIndex(1) -2 >Emitted(51, 22) Source(14, 18) + SourceIndex(1) -3 >Emitted(51, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(51, 41) Source(14, 43) + SourceIndex(1) -5 >Emitted(51, 44) Source(14, 46) + SourceIndex(1) -6 >Emitted(51, 57) Source(14, 59) + SourceIndex(1) -7 >Emitted(51, 58) Source(14, 60) + SourceIndex(1) -8 >Emitted(51, 59) Source(14, 61) + SourceIndex(1) -9 >Emitted(51, 60) Source(14, 62) + SourceIndex(1) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 9) Source(16, 5) + SourceIndex(1) -2 >Emitted(52, 22) Source(16, 18) + SourceIndex(1) -3 >Emitted(52, 23) Source(16, 32) + SourceIndex(1) -4 >Emitted(52, 44) Source(16, 45) + SourceIndex(1) -5 >Emitted(52, 47) Source(16, 48) + SourceIndex(1) -6 >Emitted(52, 49) Source(16, 50) + SourceIndex(1) -7 >Emitted(52, 50) Source(16, 51) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 9) Source(17, 5) + SourceIndex(1) -2 >Emitted(53, 22) Source(17, 18) + SourceIndex(1) -3 >Emitted(53, 23) Source(17, 19) + SourceIndex(1) -4 >Emitted(53, 27) Source(17, 31) + SourceIndex(1) -5 >Emitted(53, 39) Source(17, 55) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(54, 20) Source(17, 31) + SourceIndex(1) -3 >Emitted(54, 32) Source(17, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(55, 54) Source(17, 47) + SourceIndex(1) -3 >Emitted(55, 55) Source(17, 47) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(56, 54) Source(17, 50) + SourceIndex(1) -3 >Emitted(56, 55) Source(17, 50) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(57, 54) Source(17, 53) + SourceIndex(1) -3 >Emitted(57, 55) Source(17, 53) + SourceIndex(1) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 9) Source(17, 54) + SourceIndex(1) -2 >Emitted(58, 10) Source(17, 55) + SourceIndex(1) -3 >Emitted(58, 12) Source(17, 31) + SourceIndex(1) -4 >Emitted(58, 24) Source(17, 43) + SourceIndex(1) -5 >Emitted(58, 27) Source(17, 31) + SourceIndex(1) -6 >Emitted(58, 47) Source(17, 43) + SourceIndex(1) -7 >Emitted(58, 52) Source(17, 31) + SourceIndex(1) -8 >Emitted(58, 72) Source(17, 43) + SourceIndex(1) -9 >Emitted(58, 80) Source(17, 55) + SourceIndex(1) ---- ->>> })(normalN || (exports.normalN = normalN = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^-> -1 > - > -2 > } -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 5) Source(18, 1) + SourceIndex(1) -2 >Emitted(59, 6) Source(18, 2) + SourceIndex(1) -3 >Emitted(59, 8) Source(9, 18) + SourceIndex(1) -4 >Emitted(59, 15) Source(9, 25) + SourceIndex(1) -5 >Emitted(59, 38) Source(9, 18) + SourceIndex(1) -6 >Emitted(59, 45) Source(9, 25) + SourceIndex(1) -7 >Emitted(59, 53) Source(18, 2) + SourceIndex(1) ---- ->>> /*@internal*/ var internalC = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 > /*@internal*/ -3 > -1->Emitted(60, 5) Source(19, 1) + SourceIndex(1) -2 >Emitted(60, 18) Source(19, 14) + SourceIndex(1) -3 >Emitted(60, 19) Source(19, 15) + SourceIndex(1) ---- ->>> function internalC() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(61, 9) Source(19, 15) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class internalC { -2 > } -1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(62, 10) Source(19, 40) + SourceIndex(1) ---- ->>> return internalC; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 9) Source(19, 39) + SourceIndex(1) -2 >Emitted(63, 25) Source(19, 40) + SourceIndex(1) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class internalC {} -1 >Emitted(64, 5) Source(19, 39) + SourceIndex(1) -2 >Emitted(64, 6) Source(19, 40) + SourceIndex(1) -3 >Emitted(64, 6) Source(19, 15) + SourceIndex(1) -4 >Emitted(64, 10) Source(19, 40) + SourceIndex(1) ---- ->>> exports.internalC = internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^-> -1-> -2 > internalC -1->Emitted(65, 5) Source(19, 28) + SourceIndex(1) -2 >Emitted(65, 35) Source(19, 37) + SourceIndex(1) ---- ->>> /*@internal*/ function internalfoo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> {} - > -2 > /*@internal*/ -3 > -4 > export function -5 > internalfoo -6 > () { -7 > } -1->Emitted(66, 5) Source(20, 1) + SourceIndex(1) -2 >Emitted(66, 18) Source(20, 14) + SourceIndex(1) -3 >Emitted(66, 19) Source(20, 15) + SourceIndex(1) -4 >Emitted(66, 28) Source(20, 31) + SourceIndex(1) -5 >Emitted(66, 39) Source(20, 42) + SourceIndex(1) -6 >Emitted(66, 44) Source(20, 46) + SourceIndex(1) -7 >Emitted(66, 45) Source(20, 47) + SourceIndex(1) ---- ->>> exports.internalfoo = internalfoo; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^-> -1 > -2 > export function internalfoo() {} -1 >Emitted(67, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(67, 39) Source(20, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalNamespace -6 > { export class someClass {} } -1->Emitted(68, 5) Source(21, 1) + SourceIndex(1) -2 >Emitted(68, 18) Source(21, 14) + SourceIndex(1) -3 >Emitted(68, 19) Source(21, 15) + SourceIndex(1) -4 >Emitted(68, 23) Source(21, 32) + SourceIndex(1) -5 >Emitted(68, 40) Source(21, 49) + SourceIndex(1) -6 >Emitted(68, 41) Source(21, 79) + SourceIndex(1) ---- ->>> (function (internalNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > internalNamespace -1 >Emitted(69, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(69, 16) Source(21, 32) + SourceIndex(1) -3 >Emitted(69, 33) Source(21, 49) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(70, 9) Source(21, 52) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(71, 13) Source(21, 52) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(72, 14) Source(21, 77) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(73, 13) Source(21, 76) + SourceIndex(1) -2 >Emitted(73, 29) Source(21, 77) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(74, 9) Source(21, 76) + SourceIndex(1) -2 >Emitted(74, 10) Source(21, 77) + SourceIndex(1) -3 >Emitted(74, 10) Source(21, 52) + SourceIndex(1) -4 >Emitted(74, 14) Source(21, 77) + SourceIndex(1) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(75, 9) Source(21, 65) + SourceIndex(1) -2 >Emitted(75, 36) Source(21, 74) + SourceIndex(1) -3 >Emitted(75, 48) Source(21, 77) + SourceIndex(1) -4 >Emitted(75, 49) Source(21, 77) + SourceIndex(1) ---- ->>> })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(76, 5) Source(21, 78) + SourceIndex(1) -2 >Emitted(76, 6) Source(21, 79) + SourceIndex(1) -3 >Emitted(76, 8) Source(21, 32) + SourceIndex(1) -4 >Emitted(76, 25) Source(21, 49) + SourceIndex(1) -5 >Emitted(76, 58) Source(21, 32) + SourceIndex(1) -6 >Emitted(76, 75) Source(21, 49) + SourceIndex(1) -7 >Emitted(76, 83) Source(21, 79) + SourceIndex(1) ---- ->>> /*@internal*/ var internalOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(77, 5) Source(22, 1) + SourceIndex(1) -2 >Emitted(77, 18) Source(22, 14) + SourceIndex(1) -3 >Emitted(77, 19) Source(22, 15) + SourceIndex(1) -4 >Emitted(77, 23) Source(22, 32) + SourceIndex(1) -5 >Emitted(77, 36) Source(22, 45) + SourceIndex(1) -6 >Emitted(77, 37) Source(22, 85) + SourceIndex(1) ---- ->>> (function (internalOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 > export namespace -3 > internalOther -1 >Emitted(78, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(78, 16) Source(22, 32) + SourceIndex(1) -3 >Emitted(78, 29) Source(22, 45) + SourceIndex(1) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(79, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(79, 13) Source(22, 46) + SourceIndex(1) -3 >Emitted(79, 22) Source(22, 55) + SourceIndex(1) -4 >Emitted(79, 23) Source(22, 85) + SourceIndex(1) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(80, 9) Source(22, 46) + SourceIndex(1) -2 >Emitted(80, 20) Source(22, 46) + SourceIndex(1) -3 >Emitted(80, 29) Source(22, 55) + SourceIndex(1) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(81, 13) Source(22, 58) + SourceIndex(1) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(82, 17) Source(22, 58) + SourceIndex(1) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(83, 18) Source(22, 83) + SourceIndex(1) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(84, 17) Source(22, 82) + SourceIndex(1) -2 >Emitted(84, 33) Source(22, 83) + SourceIndex(1) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(85, 13) Source(22, 82) + SourceIndex(1) -2 >Emitted(85, 14) Source(22, 83) + SourceIndex(1) -3 >Emitted(85, 14) Source(22, 58) + SourceIndex(1) -4 >Emitted(85, 18) Source(22, 83) + SourceIndex(1) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(86, 13) Source(22, 71) + SourceIndex(1) -2 >Emitted(86, 32) Source(22, 80) + SourceIndex(1) -3 >Emitted(86, 44) Source(22, 83) + SourceIndex(1) -4 >Emitted(86, 45) Source(22, 83) + SourceIndex(1) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(87, 9) Source(22, 84) + SourceIndex(1) -2 >Emitted(87, 10) Source(22, 85) + SourceIndex(1) -3 >Emitted(87, 12) Source(22, 46) + SourceIndex(1) -4 >Emitted(87, 21) Source(22, 55) + SourceIndex(1) -5 >Emitted(87, 24) Source(22, 46) + SourceIndex(1) -6 >Emitted(87, 47) Source(22, 55) + SourceIndex(1) -7 >Emitted(87, 52) Source(22, 46) + SourceIndex(1) -8 >Emitted(87, 75) Source(22, 55) + SourceIndex(1) -9 >Emitted(87, 83) Source(22, 85) + SourceIndex(1) ---- ->>> })(internalOther || (exports.internalOther = internalOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > -2 > } -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(88, 5) Source(22, 84) + SourceIndex(1) -2 >Emitted(88, 6) Source(22, 85) + SourceIndex(1) -3 >Emitted(88, 8) Source(22, 32) + SourceIndex(1) -4 >Emitted(88, 21) Source(22, 45) + SourceIndex(1) -5 >Emitted(88, 50) Source(22, 32) + SourceIndex(1) -6 >Emitted(88, 63) Source(22, 45) + SourceIndex(1) -7 >Emitted(88, 71) Source(22, 85) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalImport = internalNamespace.someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 > /*@internal*/ -3 > export import -4 > -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(89, 5) Source(23, 1) + SourceIndex(1) -2 >Emitted(89, 18) Source(23, 14) + SourceIndex(1) -3 >Emitted(89, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(89, 27) Source(23, 29) + SourceIndex(1) -5 >Emitted(89, 41) Source(23, 43) + SourceIndex(1) -6 >Emitted(89, 44) Source(23, 46) + SourceIndex(1) -7 >Emitted(89, 61) Source(23, 63) + SourceIndex(1) -8 >Emitted(89, 62) Source(23, 64) + SourceIndex(1) -9 >Emitted(89, 71) Source(23, 73) + SourceIndex(1) -10>Emitted(89, 72) Source(23, 74) + SourceIndex(1) ---- ->>> /*@internal*/ exports.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(90, 5) Source(25, 1) + SourceIndex(1) -2 >Emitted(90, 18) Source(25, 14) + SourceIndex(1) -3 >Emitted(90, 19) Source(25, 28) + SourceIndex(1) -4 >Emitted(90, 27) Source(25, 28) + SourceIndex(1) -5 >Emitted(90, 40) Source(25, 41) + SourceIndex(1) -6 >Emitted(90, 43) Source(25, 44) + SourceIndex(1) -7 >Emitted(90, 45) Source(25, 46) + SourceIndex(1) -8 >Emitted(90, 46) Source(25, 47) + SourceIndex(1) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(91, 5) Source(26, 1) + SourceIndex(1) -2 >Emitted(91, 18) Source(26, 14) + SourceIndex(1) -3 >Emitted(91, 19) Source(26, 15) + SourceIndex(1) -4 >Emitted(91, 23) Source(26, 27) + SourceIndex(1) -5 >Emitted(91, 35) Source(26, 51) + SourceIndex(1) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(92, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(92, 16) Source(26, 27) + SourceIndex(1) -3 >Emitted(92, 28) Source(26, 39) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(93, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(93, 50) Source(26, 43) + SourceIndex(1) -3 >Emitted(93, 51) Source(26, 43) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(94, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(94, 50) Source(26, 46) + SourceIndex(1) -3 >Emitted(94, 51) Source(26, 46) + SourceIndex(1) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(95, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(95, 50) Source(26, 49) + SourceIndex(1) -3 >Emitted(95, 51) Source(26, 49) + SourceIndex(1) ---- ->>> })(internalEnum || (exports.internalEnum = internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1->Emitted(96, 5) Source(26, 50) + SourceIndex(1) -2 >Emitted(96, 6) Source(26, 51) + SourceIndex(1) -3 >Emitted(96, 8) Source(26, 27) + SourceIndex(1) -4 >Emitted(96, 20) Source(26, 39) + SourceIndex(1) -5 >Emitted(96, 48) Source(26, 27) + SourceIndex(1) -6 >Emitted(96, 60) Source(26, 39) + SourceIndex(1) -7 >Emitted(96, 68) Source(26, 51) + SourceIndex(1) ---- ->>> console.log(exports.x); -1 >^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1 > -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1 >Emitted(97, 5) Source(26, 51) + SourceIndex(1) -2 >Emitted(97, 12) Source(26, 58) + SourceIndex(1) -3 >Emitted(97, 13) Source(26, 59) + SourceIndex(1) -4 >Emitted(97, 16) Source(26, 62) + SourceIndex(1) -5 >Emitted(97, 17) Source(26, 63) + SourceIndex(1) -6 >Emitted(97, 26) Source(26, 64) + SourceIndex(1) -7 >Emitted(97, 27) Source(26, 65) + SourceIndex(1) -8 >Emitted(97, 28) Source(26, 66) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(103, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(105, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(105, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4288,"kind":"text"}],"mapHash":"-18748390595-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-148960513027-/*@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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":27,"end":52,"kind":"text"},{"pos":52,"end":76,"kind":"internal"},{"pos":77,"end":104,"kind":"text"},{"pos":104,"end":225,"kind":"internal"},{"pos":226,"end":263,"kind":"text"},{"pos":263,"end":713,"kind":"internal"},{"pos":714,"end":720,"kind":"text"},{"pos":720,"end":1191,"kind":"internal"},{"pos":1192,"end":1278,"kind":"text"}],"mapHash":"58024379814-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}","hash":"-60625246569-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","4331635807-/*@internal*/ const myGlob = 20;","40359149204-/*@internal*/ export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace 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*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4288) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - /*@internal*/ exports.x = 10; - var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; - }()); - exports.normalC = normalC; - var normalN; - (function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); - })(normalN || (exports.normalN = normalN = {})); - /*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; - }()); - exports.internalC = internalC; - /*@internal*/ function internalfoo() { } - exports.internalfoo = internalfoo; - /*@internal*/ var internalNamespace; - (function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; - })(internalNamespace || (exports.internalNamespace = internalNamespace = {})); - /*@internal*/ var internalOther; - (function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); - })(internalOther || (exports.internalOther = internalOther = {})); - /*@internal*/ exports.internalImport = internalNamespace.someClass; - /*@internal*/ exports.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum || (exports.internalEnum = internalEnum = {})); - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -internal: (0-26) -declare const myGlob = 20; ----------------------------------------------------------------------- -text: (27-52) -declare module "file1" { - ----------------------------------------------------------------------- -internal: (52-76) - export const x = 10; ----------------------------------------------------------------------- -text: (77-104) - export class normalC { - ----------------------------------------------------------------------- -internal: (104-225) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (226-263) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (263-713) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (714-720) - } - ----------------------------------------------------------------------- -internal: (720-1191) - export class internalC { - } - export function internalfoo(): void; - export namespace internalNamespace { - class someClass { - } - } - export namespace internalOther.something { - class someClass { - } - } - export import internalImport = internalNamespace.someClass; - export type internalType = internalC; - export const internalConst = 10; - export enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (1192-1278) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4288, - "kind": "text" - } - ], - "hash": "-148960513027-/*@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;\n//# sourceMappingURL=module.js.map", - "mapHash": "-18748390595-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 27, - "end": 52, - "kind": "text" - }, - { - "pos": 52, - "end": 76, - "kind": "internal" - }, - { - "pos": 77, - "end": 104, - "kind": "text" - }, - { - "pos": 104, - "end": 225, - "kind": "internal" - }, - { - "pos": 226, - "end": 263, - "kind": "text" - }, - { - "pos": 263, - "end": 713, - "kind": "internal" - }, - { - "pos": 714, - "end": 720, - "kind": "text" - }, - { - "pos": 720, - "end": 1191, - "kind": "internal" - }, - { - "pos": 1192, - "end": 1278, - "kind": "text" - } - ], - "hash": "-60625246569-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "58024379814-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.ts\"],\"names\":[],\"mappings\":\"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./file0.ts": "4331635807-/*@internal*/ const myGlob = 20;", - "./file1.ts": "40359149204-/*@internal*/ export const x = 10;\nexport class normalC {\n /*@internal*/ constructor() { }\n /*@internal*/ prop: string;\n /*@internal*/ method() { }\n /*@internal*/ get c() { return 10; }\n /*@internal*/ set c(val: number) { }\n}\nexport namespace 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*/ export class internalC {}\n/*@internal*/ export function internalfoo() {}\n/*@internal*/ export namespace internalNamespace { export class someClass {} }\n/*@internal*/ export namespace internalOther.something { export class someClass {} }\n/*@internal*/ export import internalImport = internalNamespace.someClass;\n/*@internal*/ export type internalType = internalC;\n/*@internal*/ export const internalConst = 10;\n/*@internal*/ export enum internalEnum { a, b, c }console.log(x);", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 5 - ], - [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 13361 -} - 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 deleted file mode 100644 index 69bb624d0115e..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,959 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/app/file3.ts] -export const z = 30; -import { x } from "file1"; - - -//// [/src/app/file4.ts] -/// -const file4Const = new appfile4(); -const myVar = 30; - -//// [/src/app/tripleRef.d.ts] -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 - } - ] -} - -//// [/src/lib/file0.ts] -/// -const file0Const = new libfile0(); -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/tripleRef.d.ts] -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" - ] -} - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:20 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[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:22 AM] Building project '/src/lib/tsconfig.json'... - -[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:32 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts] -/// -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; -//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.d.ts.map.baseline.txt] -=================================================================== -JsFile: module.d.ts -mapUrl: module.d.ts.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/// ->>>declare const file0Const: libfile0; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > file0Const -5 > = new libfile0() -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) -5 >Emitted(2, 35) Source(2, 34) + SourceIndex(0) -6 >Emitted(2, 36) Source(2, 35) + SourceIndex(0) ---- ->>>declare const myGlob = 20; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > myGlob -5 > = 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) -3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) -4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) -5 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 27) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file1.ts -------------------------------------------------------------------- ->>>declare module "file1" { ->>> export const x = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > x -6 > = 10 -7 > ; -1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:file2.ts -------------------------------------------------------------------- ->>>} ->>>declare module "file2" { ->>> export const y = 20; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -6 > ^^^^^ -7 > ^ -1 > -2 > export -3 > -4 > const -5 > y -6 > = 20 -7 > ; -1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.d.ts -sourceFile:global.ts -------------------------------------------------------------------- ->>>} ->>>declare const globalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -7 > ^^^^-> -1 > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) ---- ->>>var file0Const = new libfile0(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file0Const -4 > = -5 > new -6 > libfile0 -7 > () -8 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) -5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) -7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) ---- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) -5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(8, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(8, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(8, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(8, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(8, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(8, 20) Source(1, 21) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(14, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(14, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(14, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(14, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(14, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(14, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":518,"kind":"text"}],"mapHash":"31519598606-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-51218943763-///\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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":239,"kind":"text"}],"mapHash":"9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-54878555999-/// \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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./tripleref.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 { }","11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-518) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -reference: (0-39):: tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (40-239) -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 518, - "kind": "text" - } - ], - "hash": "-51218943763-///\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;\n//# sourceMappingURL=module.js.map", - "mapHash": "31519598606-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 40, - "end": 239, - "kind": "text" - } - ], - "hash": "-54878555999-/// \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//# sourceMappingURL=module.d.ts.map", - "mapHash": "9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./tripleref.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./tripleref.d.ts": "-2339691926-declare class libfile0 { }", - "./file0.ts": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", - "./file1.ts": "-10726455937-export const x = 10;", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 6 - ], - [ - "./tripleref.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 3256 -} - - - -Change:: incremental-declaration-doesnt-change -Input:: -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:00:36 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:38 AM] Building project '/src/lib/tsconfig.json'... - -[12:00:46 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist - -[12:00:47 AM] Building project '/src/app/tsconfig.json'... - -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.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"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,file1.ts,file2.ts,global.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) ---- ->>>var file0Const = new libfile0(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^ -7 > ^^ -8 > ^ -1 > - > -2 >const -3 > file0Const -4 > = -5 > new -6 > libfile0 -7 > () -8 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) -4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) -5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) -7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) -8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) ---- ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) -5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) -6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(8, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(8, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(8, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(8, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(8, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(8, 20) Source(1, 21) + SourceIndex(1) ---- ->>> console.log(exports.x); -1->^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1-> -2 > console -3 > . -4 > log -5 > ( -6 > x -7 > ) -8 > ; -1->Emitted(9, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(9, 12) Source(1, 28) + SourceIndex(1) -3 >Emitted(9, 13) Source(1, 29) + SourceIndex(1) -4 >Emitted(9, 16) Source(1, 32) + SourceIndex(1) -5 >Emitted(9, 17) Source(1, 33) + SourceIndex(1) -6 >Emitted(9, 26) Source(1, 34) + SourceIndex(1) -7 >Emitted(9, 27) Source(1, 35) + SourceIndex(1) -8 >Emitted(9, 28) Source(1, 36) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(15, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(15, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(15, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(15, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(15, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(15, 20) Source(1, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(17, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(17, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(17, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":546,"kind":"text"}],"mapHash":"25718032631-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-61447342911-///\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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":40,"end":239,"kind":"text"}],"mapHash":"9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}","hash":"-54878555999-/// \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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../../lib/lib.d.ts","./tripleref.d.ts","./file0.ts","./file1.ts","./file2.ts","./global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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 { }","11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;","-4405159098-export const x = 10;console.log(x);","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,6]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-546) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -reference: (0-39):: tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (40-239) -declare const file0Const: libfile0; -declare const myGlob = 20; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 546, - "kind": "text" - } - ], - "hash": "-61447342911-///\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;\n//# sourceMappingURL=module.js.map", - "mapHash": "25718032631-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 40, - "end": 239, - "kind": "text" - } - ], - "hash": "-54878555999-/// \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//# sourceMappingURL=module.d.ts.map", - "mapHash": "9669155184-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"file0.ts\",\"file1.ts\",\"file2.ts\",\"global.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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./tripleref.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "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; };", - "./tripleref.d.ts": "-2339691926-declare class libfile0 { }", - "./file0.ts": "11210734432-///\nconst file0Const = new libfile0();\nconst myGlob = 20;", - "./file1.ts": "-4405159098-export const x = 10;console.log(x);", - "./file2.ts": "-13729954175-export const y = 20;", - "./global.ts": "1028229885-const globalConst = 10;" - }, - "root": [ - [ - [ - 2, - 6 - ], - [ - "./tripleref.d.ts", - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ] - ] - ], - "options": { - "composite": true, - "declarationMap": true, - "module": 2, - "outFile": "./module.js", - "sourceMap": true, - "strict": false, - "target": 1 - }, - "outSignature": "-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", - "latestChangedDtsFile": "./module.d.ts" - }, - "version": "FakeTSVersion", - "size": 3340 -} - 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 eef400e6e9acd..a8659bff008d1 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 @@ -26,7 +26,6 @@ const myVar = 30; //// [/src/app/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "module": "amd", "composite": true, @@ -40,8 +39,7 @@ const myVar = 30; ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -86,27 +84,206 @@ Output:: [12:00:20 AM] Building project '/src/lib/tsconfig.json'... -[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:28 AM] Project 'src/app/tsconfig.json' is out of date because output file 'src/app/module.tsbuildinfo' does not exist -[12:00:30 AM] Building project '/src/app/tsconfig.json'... +[12:00:29 AM] Building project '/src/app/tsconfig.json'... -src/app/tsconfig.json:16:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map -16 { -   ~ -17 "path": "../lib", -  ~~~~~~~~~~~~~~~~~~~~~~~ -18 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -19 } -  ~~~~~ +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file3.ts","file4.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(2, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 7) + SourceIndex(0) +3 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) +4 >Emitted(2, 18) Source(1, 14) + SourceIndex(0) +5 >Emitted(2, 19) Source(1, 15) + SourceIndex(0) +6 >Emitted(2, 24) Source(1, 20) + SourceIndex(0) +7 >Emitted(2, 25) Source(1, 21) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 9) Source(1, 1) + SourceIndex(1) +3 >Emitted(4, 15) Source(1, 7) + SourceIndex(1) +4 >Emitted(4, 20) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 25) Source(1, 17) + SourceIndex(1) +6 >Emitted(4, 26) Source(1, 18) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map -Found 1 error. +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file3.ts","file4.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = void 0; +>>> exports.z = 30; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1 >Emitted(5, 5) Source(1, 14) + SourceIndex(0) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(0) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(0) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(0) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(0) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(7, 5) Source(1, 7) + SourceIndex(1) +3 >Emitted(7, 10) Source(1, 12) + SourceIndex(1) +4 >Emitted(7, 13) Source(1, 15) + SourceIndex(1) +5 >Emitted(7, 15) Source(1, 17) + SourceIndex(1) +6 >Emitted(7, 16) Source(1, 18) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"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":"-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "../module.d.ts", + "./file3.ts", + "./file4.ts" + ], + "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": "-16038404532-export const z = 30;\nimport { x } from \"lib/file1\";\n", + "./file4.ts": "1463681686-const myVar = 30;" + }, + "root": [ + [ + 3, + "./file3.ts" + ], + [ + 4, + "./file4.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true, + "module": 2, + "outFile": "./module.js", + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "-23302177839-declare module \"file3\" {\n export const z = 30;\n}\ndeclare const myVar = 30;\n", + "latestChangedDtsFile": "./module.d.ts" + }, + "version": "FakeTSVersion", + "size": 1170 +} -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - //// [/src/module.d.ts] declare const myGlob = 20; declare module "lib/file1" { @@ -376,77 +553,10 @@ sourceFile:lib/global.ts >>>//# sourceMappingURL=module.js.map //// [/src/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"js":{"sections":[{"pos":0,"end":453,"kind":"text"}],"mapHash":"-9312331865-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.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\"}","hash":"20009471207-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;\n//# sourceMappingURL=module.js.map"},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}],"mapHash":"34877575893-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.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\"}","hash":"-11606139032-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//# sourceMappingURL=module.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","rootDir":"./","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} - -//// [/src/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/module.js ----------------------------------------------------------------------- -text: (0-453) -var myGlob = 20; -define("lib/file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("lib/file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/module.d.ts ----------------------------------------------------------------------- -text: (0-171) -declare const myGlob = 20; -declare module "lib/file1" { - export const x = 10; -} -declare module "lib/file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./lib/file0.ts","./lib/file1.ts","./lib/file2.ts","./lib/global.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","3587416848-const myGlob = 20;","-10726455937-export const x = 10;","-13729954175-export const y = 20;","1028229885-const globalConst = 10;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./module.js","rootDir":"./","sourceMap":true,"strict":false,"target":1},"outSignature":"-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","latestChangedDtsFile":"./module.d.ts"},"version":"FakeTSVersion"} //// [/src/module.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./lib/file0.ts", - "./lib/file1.ts", - "./lib/file2.ts", - "./lib/global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 453, - "kind": "text" - } - ], - "hash": "20009471207-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;\n//# sourceMappingURL=module.js.map", - "mapHash": "-9312331865-{\"version\":3,\"file\":\"module.js\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ], - "hash": "-11606139032-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//# sourceMappingURL=module.d.ts.map", - "mapHash": "34877575893-{\"version\":3,\"file\":\"module.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"lib/file0.ts\",\"lib/file1.ts\",\"lib/file2.ts\",\"lib/global.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\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -490,6 +600,6 @@ declare const globalConst = 10; "latestChangedDtsFile": "./module.d.ts" }, "version": "FakeTSVersion", - "size": 2829 + "size": 1148 } diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile-discrepancies.js index 21145bee62a07..e39854108f896 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-incremental-with-outFile-discrepancies.js @@ -6,25 +6,6 @@ Incremental build contains the dts build section from before TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "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; };", @@ -56,36 +37,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "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; };", @@ -117,91 +68,6 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== 7:: no-change-run Clean build tsbuildinfo will have compilerOptions {} Incremental build will detect that it doesnt need to rebuild so tsbuild info is from before which has option declaration and declarationMap @@ -210,25 +76,6 @@ Incremental build contains the dts build section from before TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "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; };", @@ -260,36 +107,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "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; };", @@ -320,89 +137,4 @@ IncrementalBuild: } }, "version": "FakeTSVersion" -} -File: /src/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== \ No newline at end of file +} \ No newline at end of file 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 b13b9afd1d5a2..5f0b2e03fe3cd 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 @@ -103,63 +103,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -195,7 +142,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2025 + "size": 884 } @@ -206,12 +153,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --sourceMap -[12:00:20 AM] Projects in this build: +[12:00:19 AM] Projects in this build: * src/project/tsconfig.json -[12:00:21 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:20 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:22 AM] Building project '/src/project/tsconfig.json'... +[12:00:21 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -273,31 +220,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"mapHash":"-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -334,7 +260,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2473 + "size": 901 } @@ -345,12 +271,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:00:29 AM] Projects in this build: +[12:00:27 AM] Projects in this build: * src/project/tsconfig.json -[12:00:30 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:28 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:31 AM] Building project '/src/project/tsconfig.json'... +[12:00:29 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -408,30 +334,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -467,7 +373,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2025 + "size": 884 } @@ -478,12 +384,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration -[12:00:37 AM] Projects in this build: +[12:00:34 AM] Projects in this build: * src/project/tsconfig.json -[12:00:38 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:35 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:39 AM] Building project '/src/project/tsconfig.json'... +[12:00:36 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -528,91 +434,10 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -649,7 +474,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2334 + "size": 903 } @@ -660,12 +485,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration --declarationMap -[12:00:45 AM] Projects in this build: +[12:00:41 AM] Projects in this build: * src/project/tsconfig.json -[12:00:46 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:42 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:47 AM] Building project '/src/project/tsconfig.json'... +[12:00:43 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -714,41 +539,10 @@ declare module "d" { {"version":3,"file":"outFile.d.ts","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -786,7 +580,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2740 + "size": 925 } @@ -797,10 +591,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:00:54 AM] Projects in this build: +[12:00:49 AM] Projects in this build: * src/project/tsconfig.json -[12:00:55 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' +[12:00:50 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -816,12 +610,12 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --b /src/project --verbose -[12:00:57 AM] Projects in this build: +[12:00:52 AM] Projects in this build: * src/project/tsconfig.json -[12:00:58 AM] Project 'src/project/tsconfig.json' is out of date because output 'src/outFile.tsbuildinfo' is older than input 'src/project/a.ts' +[12:00:53 AM] Project 'src/project/tsconfig.json' is out of date because output 'src/outFile.tsbuildinfo' is older than input 'src/project/a.ts' -[12:00:59 AM] Building project '/src/project/tsconfig.json'... +[12:00:54 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -879,63 +673,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -971,7 +712,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2028 + "size": 885 } @@ -982,12 +723,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration --declarationMap -[12:01:05 AM] Projects in this build: +[12:00:59 AM] Projects in this build: * src/project/tsconfig.json -[12:01:06 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:00 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:07 AM] Building project '/src/project/tsconfig.json'... +[12:01:01 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1020,92 +761,10 @@ No shapes updated in the builder:: //// [/src/outFile.d.ts] file written with same contents //// [/src/outFile.d.ts.map] file written with same contents //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1143,7 +802,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2743 + "size": 926 } @@ -1154,10 +813,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:01:14 AM] Projects in this build: +[12:01:07 AM] Projects in this build: * src/project/tsconfig.json -[12:01:15 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/a.ts' is older than output 'src/outFile.tsbuildinfo' +[12:01:08 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/a.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -1170,12 +829,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --inlineSourceMap -[12:01:16 AM] Projects in this build: +[12:01:09 AM] Projects in this build: * src/project/tsconfig.json -[12:01:17 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:10 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:18 AM] Building project '/src/project/tsconfig.json'... +[12:01:11 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1234,63 +893,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1327,7 +933,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2561 + "size": 908 } @@ -1338,12 +944,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --sourceMap -[12:01:24 AM] Projects in this build: +[12:01:16 AM] Projects in this build: * src/project/tsconfig.json -[12:01:25 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:17 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:26 AM] Building project '/src/project/tsconfig.json'... +[12:01:18 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1405,31 +1011,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"mapHash":"-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1466,7 +1051,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2476 + "size": 902 } @@ -1477,12 +1062,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:01:33 AM] Projects in this build: +[12:01:24 AM] Projects in this build: * src/project/tsconfig.json -[12:01:34 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:25 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:35 AM] Building project '/src/project/tsconfig.json'... +[12:01:26 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1540,30 +1125,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1599,7 +1164,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2028 + "size": 885 } @@ -1610,12 +1175,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration --declarationMap -[12:01:41 AM] Projects in this build: +[12:01:31 AM] Projects in this build: * src/project/tsconfig.json -[12:01:42 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:32 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:43 AM] Building project '/src/project/tsconfig.json'... +[12:01:33 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1648,92 +1213,10 @@ No shapes updated in the builder:: //// [/src/outFile.d.ts] file written with same contents //// [/src/outFile.d.ts.map] file written with same contents //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1771,7 +1254,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2743 + "size": 926 } @@ -1782,10 +1265,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration --declarationMap -[12:01:50 AM] Projects in this build: +[12:01:39 AM] Projects in this build: * src/project/tsconfig.json -[12:01:51 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/a.ts' is older than output 'src/outFile.tsbuildinfo' +[12:01:40 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/a.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success diff --git a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile-discrepancies.js index 19bc029bae100..c6e40e5d0a283 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile-discrepancies.js @@ -4,35 +4,6 @@ Incremental build will detect that it doesnt need to rebuild so tsbuild info is TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -68,35 +39,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -137,25 +79,6 @@ Incremental build info has js section from old build TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -191,35 +114,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -252,112 +146,12 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== 9:: with declaration should not emit anything Clean build tsbuildinfo will have compilerOptions with composite and declaration Incremental build will detect that it doesnt need to rebuild so tsbuild info is from before which has option composite only TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -393,35 +187,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", 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 9f0de1ad7fe76..70e1163cc7a51 100644 --- a/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js +++ b/tests/baselines/reference/tsbuild/commandLine/different-options-with-outFile.js @@ -118,91 +118,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -241,7 +160,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2615 + "size": 1184 } @@ -252,12 +171,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --sourceMap -[12:00:21 AM] Projects in this build: +[12:00:20 AM] Projects in this build: * src/project/tsconfig.json -[12:00:22 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:21 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:23 AM] Building project '/src/project/tsconfig.json'... +[12:00:22 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -319,41 +238,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"mapHash":"-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -393,7 +281,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3063 + "size": 1201 } @@ -404,12 +292,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:00:30 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/project/tsconfig.json -[12:00:31 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:29 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:32 AM] Building project '/src/project/tsconfig.json'... +[12:00:30 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -467,40 +355,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -539,7 +397,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2615 + "size": 1184 } @@ -550,10 +408,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration -[12:00:38 AM] Projects in this build: +[12:00:35 AM] Projects in this build: * src/project/tsconfig.json -[12:00:39 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' +[12:00:36 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -566,10 +424,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:00:40 AM] Projects in this build: +[12:00:37 AM] Projects in this build: * src/project/tsconfig.json -[12:00:41 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' +[12:00:38 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -582,12 +440,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration --declarationMap -[12:00:42 AM] Projects in this build: +[12:00:39 AM] Projects in this build: * src/project/tsconfig.json -[12:00:43 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:40 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:44 AM] Building project '/src/project/tsconfig.json'... +[12:00:41 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -636,41 +494,10 @@ declare module "d" { {"version":3,"file":"outFile.d.ts","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -711,7 +538,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3040 + "size": 1225 } @@ -722,12 +549,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:00:52 AM] Projects in this build: +[12:00:48 AM] Projects in this build: * src/project/tsconfig.json -[12:00:53 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:49 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:54 AM] Building project '/src/project/tsconfig.json'... +[12:00:50 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -771,40 +598,10 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -843,7 +640,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2615 + "size": 1184 } @@ -854,10 +651,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --emitDeclarationOnly -[12:01:01 AM] Projects in this build: +[12:00:56 AM] Projects in this build: * src/project/tsconfig.json -[12:01:02 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' +[12:00:57 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -870,10 +667,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose -[12:01:03 AM] Projects in this build: +[12:00:58 AM] Projects in this build: * src/project/tsconfig.json -[12:01:04 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' +[12:00:59 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/d.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -889,12 +686,12 @@ export const a = 10;const aLocal = 100; Output:: /lib/tsc --b /src/project --verbose -[12:01:06 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/project/tsconfig.json -[12:01:07 AM] Project 'src/project/tsconfig.json' is out of date because output 'src/outFile.tsbuildinfo' is older than input 'src/project/a.ts' +[12:01:02 AM] Project 'src/project/tsconfig.json' is out of date because output 'src/outFile.tsbuildinfo' is older than input 'src/project/a.ts' -[12:01:08 AM] Building project '/src/project/tsconfig.json'... +[12:01:03 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -952,91 +749,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1075,7 +791,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2618 + "size": 1185 } @@ -1086,10 +802,10 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --declaration -[12:01:14 AM] Projects in this build: +[12:01:08 AM] Projects in this build: * src/project/tsconfig.json -[12:01:15 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/a.ts' is older than output 'src/outFile.tsbuildinfo' +[12:01:09 AM] Project 'src/project/tsconfig.json' is up to date because newest input 'src/project/a.ts' is older than output 'src/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -1102,12 +818,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --inlineSourceMap -[12:01:16 AM] Projects in this build: +[12:01:10 AM] Projects in this build: * src/project/tsconfig.json -[12:01:17 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:11 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:18 AM] Building project '/src/project/tsconfig.json'... +[12:01:12 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1166,40 +882,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1239,7 +925,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3151 + "size": 1208 } @@ -1250,12 +936,12 @@ Input:: Output:: /lib/tsc --b /src/project --verbose --sourceMap -[12:01:24 AM] Projects in this build: +[12:01:17 AM] Projects in this build: * src/project/tsconfig.json -[12:01:25 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:18 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:26 AM] Building project '/src/project/tsconfig.json'... +[12:01:19 AM] Building project '/src/project/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1317,41 +1003,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"mapHash":"-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1391,6 +1046,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3066 + "size": 1202 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js index 86ac6276b3c04..42050daabce36 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js @@ -4,25 +4,6 @@ Incremental build will detect that it doesnt need to rebuild so tsbuild info for TsBuild info text without affectedFilesPendingEmit:: /src/project1/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -56,35 +37,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 881, - "kind": "text" - } - ], - "hash": "8033983700-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -115,76 +67,4 @@ IncrementalBuild: } }, "version": "FakeTSVersion" -} -File: /src/project1/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-881) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== \ No newline at end of file +} \ No newline at end of file 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 bfb07e03c1f8e..f653d343e21c7 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 @@ -75,9 +75,9 @@ Output:: [12:00:21 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:27 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -160,49 +160,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -240,7 +201,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 1318 + "size": 917 } @@ -251,15 +212,15 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose -[12:00:29 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:30 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:00:29 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:00:31 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:31 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -311,17 +272,17 @@ export const a = 10;const aLocal = 10;const aa = 10; Output:: /lib/tsc --b /src/project2/src --verbose -[12:00:34 AM] Projects in this build: +[12:00:33 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:35 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' +[12:00:34 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' -[12:00:36 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:35 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:42 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:40 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:43 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:41 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -390,30 +351,10 @@ No shapes updated in the builder:: //// [/src/project1/outFile.d.ts] file written with same contents //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -451,7 +392,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 1332 + "size": 931 } @@ -462,17 +403,17 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly false -[12:00:44 AM] Projects in this build: +[12:00:42 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:45 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:43 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:46 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:44 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:52 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:49 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:53 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:50 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -570,92 +511,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":881,"kind":"text"}],"hash":"8033983700-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-881) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 881, - "kind": "text" - } - ], - "hash": "8033983700-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -693,7 +552,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2360 + "size": 932 } @@ -704,15 +563,15 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose -[12:00:54 AM] Projects in this build: +[12:00:51 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:55 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:00:52 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:00:56 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:53 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:57 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -761,15 +620,15 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly false -[12:00:58 AM] Projects in this build: +[12:00:55 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:59 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:00:56 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:01:00 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:57 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:01 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -821,17 +680,17 @@ export const b = 10;const bLocal = 10;const blocal = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly false -[12:01:03 AM] Projects in this build: +[12:01:00 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:04 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:01 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:05 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:02 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:12 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:01:08 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:09 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:10:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -931,93 +790,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}],"hash":"11057592749-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var blocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-902) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; - var blocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 902, - "kind": "text" - } - ], - "hash": "11057592749-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var blocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1055,6 +831,6 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2400 + "size": 949 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile-discrepancies.js index 65697c982c269..b70cecc60e1c4 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-false-on-commandline-with-outFile-discrepancies.js @@ -4,25 +4,6 @@ Incremental build will detect that it doesnt need to rebuild so tsbuild info for TsBuild info text without affectedFilesPendingEmit:: /src/project1/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -58,35 +39,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 881, - "kind": "text" - } - ], - "hash": "8033983700-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -120,99 +72,9 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/project1/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-881) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== TsBuild info text without affectedFilesPendingEmit:: /src/project2/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "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; };", @@ -247,34 +109,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 623, - "kind": "text" - } - ], - "hash": "40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "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; };", @@ -306,61 +140,4 @@ IncrementalBuild: "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" -} -File: /src/project2/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project2/outFile.js ----------------------------------------------------------------------- -text: (0-623) -define("e", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.e = void 0; - exports.e = 10; -}); -define("f", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = void 0; - exports.f = a_1.a; -}); -define("g", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.g = void 0; - exports.g = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== \ No newline at end of file +} \ No newline at end of file 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 bab6aa754c258..e803a0fc3e06f 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 @@ -73,9 +73,9 @@ Output:: [12:00:21 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:27 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -144,49 +144,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -226,7 +187,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1599 + "size": 1198 } //// [/src/project2/outFile.d.ts] @@ -242,45 +203,10 @@ declare module "g" { //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -319,7 +245,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1650 + "size": 1315 } @@ -330,13 +256,13 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose -[12:00:34 AM] Projects in this build: +[12:00:32 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:35 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:00:33 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:00:36 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' +[12:00:34 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -352,17 +278,17 @@ export const a = 10;const aLocal = 10;const aa = 10; Output:: /lib/tsc --b /src/project2/src --verbose -[12:00:38 AM] Projects in this build: +[12:00:36 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:39 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' +[12:00:37 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' -[12:00:40 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:38 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:45 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:42 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:46 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... +[12:00:43 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -392,30 +318,10 @@ No shapes updated in the builder:: //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -455,7 +361,7 @@ No shapes updated in the builder:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1613 + "size": 1212 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -467,17 +373,17 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly false -[12:00:49 AM] Projects in this build: +[12:00:46 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:50 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:47 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:51 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:48 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:57 AM] Project 'src/project2/src/tsconfig.json' is out of date because buildinfo file 'src/project2/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:53 AM] Project 'src/project2/src/tsconfig.json' is out of date because buildinfo file 'src/project2/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:58 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -561,92 +467,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":881,"kind":"text"}],"hash":"8033983700-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-881) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 881, - "kind": "text" - } - ], - "hash": "8033983700-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -686,7 +510,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2641 + "size": 1213 } //// [/src/project2/outFile.js] @@ -711,79 +535,10 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"js":{"sections":[{"pos":0,"end":623,"kind":"text"}],"hash":"40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project2/outFile.js ----------------------------------------------------------------------- -text: (0-623) -define("e", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.e = void 0; - exports.e = 10; -}); -define("f", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = void 0; - exports.f = a_1.a; -}); -define("g", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.g = void 0; - exports.g = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 623, - "kind": "text" - } - ], - "hash": "40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -822,7 +577,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2402 + "size": 1316 } @@ -833,13 +588,13 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose -[12:01:04 AM] Projects in this build: +[12:00:59 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:05 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:01:00 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:01:06 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' +[12:01:01 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -852,13 +607,13 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly false -[12:01:07 AM] Projects in this build: +[12:01:02 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:08 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:01:03 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:01:09 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' +[12:01:04 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -874,17 +629,17 @@ export const b = 10;const bLocal = 10;const blocal = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly false -[12:01:11 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:12 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:07 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:13 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:08 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:19 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:13 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:20 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... +[12:01:14 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -945,93 +700,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":902,"kind":"text"}],"hash":"11057592749-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var blocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-902) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; - var blocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","2355059555-export const b = 10;const bLocal = 10;const blocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":false,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 902, - "kind": "text" - } - ], - "hash": "11057592749-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var blocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1071,7 +743,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2681 + "size": 1230 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js index a4b6d490b4498..dd6ccad41597c 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-declaration-and-incremental-with-outFile-discrepancies.js @@ -4,25 +4,6 @@ Incremental build will detect that it doesnt need to rebuild so tsbuild info for TsBuild info text without affectedFilesPendingEmit:: /src/project1/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -56,35 +37,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 917, - "kind": "text" - } - ], - "hash": "36756736640-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -114,79 +66,4 @@ IncrementalBuild: } }, "version": "FakeTSVersion" -} -File: /src/project1/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-917) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== \ No newline at end of file +} \ No newline at end of file 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 60d12caf3f96e..0e004c1873b11 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 @@ -73,9 +73,9 @@ Output:: [12:00:21 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:27 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -158,49 +158,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -238,7 +199,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 1318 + "size": 917 } @@ -249,15 +210,15 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:00:29 AM] Projects in this build: +[12:00:28 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:30 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:00:29 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:00:31 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:30 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:32 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:31 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -309,17 +270,17 @@ export const a = 10;const aLocal = 10;const aa = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:00:34 AM] Projects in this build: +[12:00:33 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:35 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' +[12:00:34 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' -[12:00:36 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:35 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:42 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:40 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:43 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:41 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -388,30 +349,10 @@ No shapes updated in the builder:: //// [/src/project1/outFile.d.ts] file written with same contents //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -449,7 +390,7 @@ No shapes updated in the builder:: } }, "version": "FakeTSVersion", - "size": 1332 + "size": 931 } @@ -463,17 +404,17 @@ export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:00:45 AM] Projects in this build: +[12:00:43 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:46 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' +[12:00:44 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' -[12:00:47 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:45 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:53 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:50 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:54 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:51 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -557,50 +498,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -638,7 +539,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 1378 + "size": 952 } @@ -649,17 +550,17 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose -[12:00:55 AM] Projects in this build: +[12:00:52 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:56 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:00:53 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:00:57 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:54 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:03 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:59 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:04 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:00 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -756,94 +657,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":917,"kind":"text"}],"hash":"36756736640-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-917) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 917, - "kind": "text" - } - ], - "hash": "36756736640-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -880,7 +697,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2416 + "size": 925 } @@ -891,15 +708,15 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:01:05 AM] Projects in this build: +[12:01:01 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:06 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:01:02 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:01:07 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:01:03 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:08 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:04 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -951,17 +768,17 @@ export const b = 10;const bLocal = 10;const alocal = 10; Output:: /lib/tsc --b /src/project2/src --verbose -[12:01:10 AM] Projects in this build: +[12:01:06 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:11 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:07 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:12 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:08 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:19 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:01:14 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:20 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:15 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -1060,95 +877,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":938,"kind":"text"}],"hash":"29527303128-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-938) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; - var alocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 938, - "kind": "text" - } - ], - "hash": "29527303128-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1185,7 +917,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2456 + "size": 943 } @@ -1199,17 +931,17 @@ export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:01:22 AM] Projects in this build: +[12:01:17 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:23 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:18 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:24 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:19 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:30 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:01:24 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:31 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:25 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -1278,50 +1010,10 @@ No shapes updated in the builder:: //// [/src/project1/outFile.d.ts] file written with same contents //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1359,7 +1051,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 1412 + "size": 986 } @@ -1373,17 +1065,17 @@ export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export c Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:01:33 AM] Projects in this build: +[12:01:27 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:34 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:28 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:35 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:29 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:41 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:01:34 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:42 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:35 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -1468,51 +1160,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":248,"kind":"text"}],"hash":"-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-248) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; - export const aaaaa = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 248, - "kind": "text" - } - ], - "hash": "-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1550,7 +1201,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 1468 + "size": 1010 } @@ -1564,17 +1215,17 @@ export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export c Output:: /lib/tsc --b /src/project2/src --verbose -[12:01:44 AM] Projects in this build: +[12:01:37 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:45 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:38 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:46 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:39 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:53 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:01:45 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:01:54 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:46 AM] Building project '/src/project2/src/tsconfig.json'... src/project2/src/tsconfig.json:9:5 - error TS6306: Referenced project '/src/project1/src' must have setting "composite": true. @@ -1693,100 +1344,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":1031,"kind":"text"}],"hash":"29921359364-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a2 = exports.aaaaa = exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n var aaaa = 10;\n exports.aaaaa = 10;\n exports.a2 = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":274,"kind":"text"}],"hash":"1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-1031) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a2 = exports.aaaaa = exports.b = void 0; - exports.b = 10; - var bLocal = 10; - var alocal = 10; - var aaaa = 10; - exports.aaaaa = 10; - exports.a2 = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-274) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; - export const aaaaa = 10; - export const a2 = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1031, - "kind": "text" - } - ], - "hash": "29921359364-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a2 = exports.aaaaa = exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n var aaaa = 10;\n exports.aaaaa = 10;\n exports.a2 = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 274, - "kind": "text" - } - ], - "hash": "1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1823,6 +1384,6 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2673 + "size": 1005 } diff --git a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile-discrepancies.js b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile-discrepancies.js index 3958b174c70ef..98ac704ddf1db 100644 --- a/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsbuild/commandLine/emitDeclarationOnly-on-commandline-with-outFile-discrepancies.js @@ -4,25 +4,6 @@ Incremental build will detect that it doesnt need to rebuild so tsbuild info for TsBuild info text without affectedFilesPendingEmit:: /src/project1/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -58,35 +39,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 917, - "kind": "text" - } - ], - "hash": "36756736640-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -119,102 +71,9 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/project1/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-917) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== TsBuild info text without affectedFilesPendingEmit:: /src/project2/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "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; };", @@ -249,34 +108,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 623, - "kind": "text" - } - ], - "hash": "40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "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; };", @@ -308,87 +139,12 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/project2/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project2/outFile.js ----------------------------------------------------------------------- -text: (0-623) -define("e", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.e = void 0; - exports.e = 10; -}); -define("f", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = void 0; - exports.f = a_1.a; -}); -define("g", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.g = void 0; - exports.g = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== 6:: local change Clean build tsbuildinfo for project2 will have compilerOptions with composite and emitDeclarationOnly Incremental build will detect that it doesnt need to rebuild project2 so tsbuildinfo for it is from before which has option composite only TsBuild info text without affectedFilesPendingEmit:: /src/project2/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "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; };", @@ -423,34 +179,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 623, - "kind": "text" - } - ], - "hash": "40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "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; };", @@ -481,61 +209,4 @@ IncrementalBuild: "latestChangedDtsFile": "FakeFileName" }, "version": "FakeTSVersion" -} -File: /src/project2/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/project2/outFile.js ----------------------------------------------------------------------- -text: (0-623) -define("e", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.e = void 0; - exports.e = 10; -}); -define("f", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = void 0; - exports.f = a_1.a; -}); -define("g", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.g = void 0; - exports.g = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== \ No newline at end of file +} \ No newline at end of file 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 a344d1dad8c6f..92d792bb8137a 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 @@ -71,9 +71,9 @@ Output:: [12:00:21 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:27 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist +[12:00:26 AM] Project 'src/project2/src/tsconfig.json' is out of date because output file 'src/project2/outFile.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:27 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -142,49 +142,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -224,7 +185,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1599 + "size": 1198 } //// [/src/project2/outFile.d.ts] @@ -240,45 +201,10 @@ declare module "g" { //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -317,7 +243,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1650 + "size": 1315 } @@ -328,13 +254,13 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:00:34 AM] Projects in this build: +[12:00:32 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:35 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:00:33 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/d.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:00:36 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' +[12:00:34 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -350,17 +276,17 @@ export const a = 10;const aLocal = 10;const aa = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:00:38 AM] Projects in this build: +[12:00:36 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:39 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' +[12:00:37 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' -[12:00:40 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:38 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:45 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:00:42 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:00:46 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... +[12:00:43 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -390,30 +316,10 @@ No shapes updated in the builder:: //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-16597586570-export const a = 10;const aLocal = 10;const aa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -453,7 +359,7 @@ No shapes updated in the builder:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1613 + "size": 1212 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -468,17 +374,17 @@ export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:00:50 AM] Projects in this build: +[12:00:47 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:00:51 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' +[12:00:48 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/a.ts' -[12:00:52 AM] Building project '/src/project1/src/tsconfig.json'... +[12:00:49 AM] Building project '/src/project1/src/tsconfig.json'... -[12:00:58 AM] Project 'src/project2/src/tsconfig.json' is out of date because output 'src/project2/outFile.tsbuildinfo' is older than input 'src/project1/src' +[12:00:54 AM] Project 'src/project2/src/tsconfig.json' is out of date because output 'src/project2/outFile.tsbuildinfo' is older than input 'src/project1/src' -[12:00:59 AM] Building project '/src/project2/src/tsconfig.json'... +[12:00:55 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -548,50 +454,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -631,33 +497,14 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1684 + "size": 1258 } //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -696,7 +543,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1675 + "size": 1340 } @@ -707,17 +554,17 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose -[12:01:04 AM] Projects in this build: +[12:00:59 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:05 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:00 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:06 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:01 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:12 AM] Project 'src/project2/src/tsconfig.json' is out of date because buildinfo file 'src/project2/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:06 AM] Project 'src/project2/src/tsconfig.json' is out of date because buildinfo file 'src/project2/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:01:13 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:07 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -800,94 +647,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":917,"kind":"text"}],"hash":"36756736640-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-917) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 917, - "kind": "text" - } - ], - "hash": "36756736640-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -926,7 +689,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2722 + "size": 1231 } //// [/src/project2/outFile.js] @@ -951,79 +714,10 @@ define("g", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"js":{"sections":[{"pos":0,"end":623,"kind":"text"}],"hash":"40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project2/outFile.js ----------------------------------------------------------------------- -text: (0-623) -define("e", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.e = void 0; - exports.e = 10; -}); -define("f", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = void 0; - exports.f = a_1.a; -}); -define("g", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.g = void 0; - exports.g = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 623, - "kind": "text" - } - ], - "hash": "40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1061,7 +755,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2399 + "size": 1313 } @@ -1072,13 +766,13 @@ Input:: Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:01:19 AM] Projects in this build: +[12:01:12 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:20 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' +[12:01:13 AM] Project 'src/project1/src/tsconfig.json' is up to date because newest input 'src/project1/src/a.ts' is older than output 'src/project1/outFile.tsbuildinfo' -[12:01:21 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' +[12:01:14 AM] Project 'src/project2/src/tsconfig.json' is up to date because newest input 'src/project2/src/g.ts' is older than output 'src/project2/outFile.tsbuildinfo' exitCode:: ExitStatus.Success @@ -1094,17 +788,17 @@ export const b = 10;const bLocal = 10;const alocal = 10; Output:: /lib/tsc --b /src/project2/src --verbose -[12:01:23 AM] Projects in this build: +[12:01:16 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:24 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:17 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:25 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:18 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:31 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:23 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:32 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... +[12:01:24 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1165,95 +859,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":938,"kind":"text"}],"hash":"29527303128-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-938) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; - var alocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-2761163262-export const b = 10;const bLocal = 10;const alocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 938, - "kind": "text" - } - ], - "hash": "29527303128-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1292,7 +901,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2762 + "size": 1249 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -1307,17 +916,17 @@ export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10; Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:01:36 AM] Projects in this build: +[12:01:28 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:37 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:29 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:38 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:30 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:43 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies +[12:01:34 AM] Project 'src/project2/src/tsconfig.json' is up to date with .d.ts files from its dependencies -[12:01:44 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... +[12:01:35 AM] Updating output timestamps of project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1347,50 +956,10 @@ No shapes updated in the builder:: //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":219,"kind":"text"}],"hash":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-219) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-3037017594-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 219, - "kind": "text" - } - ], - "hash": "106974224-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1430,7 +999,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1718 + "size": 1292 } //// [/src/project2/outFile.tsbuildinfo] file changed its modified time @@ -1445,17 +1014,17 @@ export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export c Output:: /lib/tsc --b /src/project2/src --verbose --emitDeclarationOnly -[12:01:48 AM] Projects in this build: +[12:01:39 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:01:49 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' +[12:01:40 AM] Project 'src/project1/src/tsconfig.json' is out of date because output 'src/project1/outFile.tsbuildinfo' is older than input 'src/project1/src/b.ts' -[12:01:50 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:41 AM] Building project '/src/project1/src/tsconfig.json'... -[12:01:56 AM] Project 'src/project2/src/tsconfig.json' is out of date because output 'src/project2/outFile.tsbuildinfo' is older than input 'src/project1/src' +[12:01:46 AM] Project 'src/project2/src/tsconfig.json' is out of date because output 'src/project2/outFile.tsbuildinfo' is older than input 'src/project1/src' -[12:01:57 AM] Building project '/src/project2/src/tsconfig.json'... +[12:01:47 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1526,51 +1095,10 @@ declare module "d" { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"dts":{"sections":[{"pos":0,"end":248,"kind":"text"}],"hash":"-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-248) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; - export const aaaaa = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-7233149715-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 248, - "kind": "text" - } - ], - "hash": "-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1610,49 +1138,14 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1806 + "size": 1348 } //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-3908737535-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"emitDeclarationOnly":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1691,7 +1184,7 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1707 + "size": 1372 } @@ -1705,17 +1198,17 @@ export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export c Output:: /lib/tsc --b /src/project2/src --verbose -[12:02:03 AM] Projects in this build: +[12:01:52 AM] Projects in this build: * src/project1/src/tsconfig.json * src/project2/src/tsconfig.json -[12:02:04 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:01:53 AM] Project 'src/project1/src/tsconfig.json' is out of date because buildinfo file 'src/project1/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:02:05 AM] Building project '/src/project1/src/tsconfig.json'... +[12:01:54 AM] Building project '/src/project1/src/tsconfig.json'... -[12:02:12 AM] Project 'src/project2/src/tsconfig.json' is out of date because buildinfo file 'src/project2/outFile.tsbuildinfo' indicates there is change in compilerOptions +[12:02:00 AM] Project 'src/project2/src/tsconfig.json' is out of date because buildinfo file 'src/project2/outFile.tsbuildinfo' indicates there is change in compilerOptions -[12:02:13 AM] Building project '/src/project2/src/tsconfig.json'... +[12:02:01 AM] Building project '/src/project2/src/tsconfig.json'... exitCode:: ExitStatus.Success Program root files: [ @@ -1820,100 +1313,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/project1/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"js":{"sections":[{"pos":0,"end":1031,"kind":"text"}],"hash":"29921359364-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a2 = exports.aaaaa = exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n var aaaa = 10;\n exports.aaaaa = 10;\n exports.a2 = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":274,"kind":"text"}],"hash":"1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project1/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project1/outFile.js ----------------------------------------------------------------------- -text: (0-1031) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.aaa = exports.a = void 0; - exports.a = 10; - var aLocal = 10; - var aa = 10; - exports.aaa = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a2 = exports.aaaaa = exports.b = void 0; - exports.b = 10; - var bLocal = 10; - var alocal = 10; - var aaaa = 10; - exports.aaaaa = 10; - exports.a2 = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project1/outFile.d.ts ----------------------------------------------------------------------- -text: (0-274) -declare module "a" { - export const a = 10; - export const aaa = 10; -} -declare module "b" { - export const b = 10; - export const aaaaa = 10; - export const a2 = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","./src/a.ts","./src/b.ts","./src/c.ts","./src/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-6435489413-export const a = 10;const aLocal = 10;const aa = 10;export const aaa = 10;","-18124257118-export const b = 10;const bLocal = 10;const alocal = 10;const aaaa = 10;export const aaaaa = 10;export const a2 = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project1/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/a.ts", - "./src/b.ts", - "./src/c.ts", - "./src/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1031, - "kind": "text" - } - ], - "hash": "29921359364-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.aaa = exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n var aa = 10;\n exports.aaa = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a2 = exports.aaaaa = exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n var alocal = 10;\n var aaaa = 10;\n exports.aaaaa = 10;\n exports.a2 = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 274, - "kind": "text" - } - ], - "hash": "1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -1952,84 +1355,15 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3037 + "size": 1369 } //// [/src/project2/outFile.js] file written with same contents //// [/src/project2/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./src","sourceFiles":["./src/e.ts","./src/f.ts","./src/g.ts"],"js":{"sections":[{"pos":0,"end":623,"kind":"text"}],"hash":"40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":144,"kind":"text"}],"hash":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n"}},"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/project2/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/project2/outFile.js ----------------------------------------------------------------------- -text: (0-623) -define("e", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.e = void 0; - exports.e = 10; -}); -define("f", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.f = void 0; - exports.f = a_1.a; -}); -define("g", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.g = void 0; - exports.g = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/project2/outFile.d.ts ----------------------------------------------------------------------- -text: (0-144) -declare module "e" { - export const e = 10; -} -declare module "f" { - export const f = 10; -} -declare module "g" { - export const g = 10; -} - -====================================================================== +{"program":{"fileNames":["../../lib/lib.d.ts","../project1/outfile.d.ts","./src/e.ts","./src/f.ts","./src/g.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","1646858368-declare module \"a\" {\n export const a = 10;\n export const aaa = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n export const aaaaa = 10;\n export const a2 = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","-13789510868-export const e = 10;","-4849089835-import { a } from \"a\"; export const f = a;","-18341999015-import { b } from \"b\"; export const g = b;"],"root":[[3,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/project2/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./src", - "sourceFiles": [ - "./src/e.ts", - "./src/f.ts", - "./src/g.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 623, - "kind": "text" - } - ], - "hash": "40579807800-define(\"e\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.e = void 0;\n exports.e = 10;\n});\ndefine(\"f\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.f = void 0;\n exports.f = a_1.a;\n});\ndefine(\"g\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.g = void 0;\n exports.g = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 144, - "kind": "text" - } - ], - "hash": "-12964815745-declare module \"e\" {\n export const e = 10;\n}\ndeclare module \"f\" {\n export const f = 10;\n}\ndeclare module \"g\" {\n export const g = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -2067,6 +1401,6 @@ declare module "g" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2457 + "size": 1371 } diff --git a/tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js b/tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js deleted file mode 100644 index c78f440d2782c..0000000000000 --- a/tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js +++ /dev/null @@ -1,219 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/lib/lib.esnext.full.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/project/index.ts] -import ky from 'ky'; -export const api = ky.extend({}); - - -//// [/src/project/node_modules/ky/distribution/index.d.ts] -type KyInstance = { - extend(options: Record): KyInstance; - } - declare const ky: KyInstance; - export default ky; - - -//// [/src/project/node_modules/ky/package.json] -{ - "name": "ky", - "type": "module", - "main": "./distribution/index.js" -} - -//// [/src/project/package.json] -{ - "type": "module" -} - -//// [/src/project/tsconfig.json] -{ - "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", - "incremental": true, - "declaration": true, - "skipLibCheck": true, - "skipDefaultLibCheck": true - } -} - - - -Output:: -/lib/tsc -b /src/project --explainFiles --listEmittedFiles --v -[12:00:16 AM] Projects in this build: - * src/project/tsconfig.json - -[12:00:17 AM] Project 'src/project/tsconfig.json' is out of date because output file 'src/project/tsconfig.tsbuildinfo' does not exist - -[12:00:18 AM] Building project '/src/project/tsconfig.json'... - -src/project/index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/src/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -TSFILE: /src/project/tsconfig.tsbuildinfo -lib/lib.esnext.full.d.ts - Default library for target 'esnext' -src/project/node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'src/project/index.ts' - File is ECMAScript module because 'src/project/node_modules/ky/package.json' has field "type" with value "module" -src/project/index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'src/project/package.json' has field "type" with value "module" - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped - - -//// [/src/project/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.esnext.full.d.ts","./node_modules/ky/distribution/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,"impliedFormat":1},{"version":"20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n","impliedFormat":99},{"version":"-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n","impliedFormat":99}],"root":[3],"options":{"declaration":true,"module":199,"skipDefaultLibCheck":true,"skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} - -//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.esnext.full.d.ts", - "./node_modules/ky/distribution/index.d.ts", - "./index.ts" - ], - "fileNamesList": [ - [ - "./node_modules/ky/distribution/index.d.ts" - ] - ], - "fileInfos": { - "../../lib/lib.esnext.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, - "impliedFormat": 1 - }, - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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, - "impliedFormat": "commonjs" - }, - "./node_modules/ky/distribution/index.d.ts": { - "original": { - "version": "20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n", - "impliedFormat": 99 - }, - "version": "20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n", - "signature": "20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n", - "impliedFormat": "esnext" - }, - "./index.ts": { - "original": { - "version": "-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n", - "impliedFormat": 99 - }, - "version": "-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n", - "signature": "-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n", - "impliedFormat": "esnext" - } - }, - "root": [ - [ - 3, - "./index.ts" - ] - ], - "options": { - "declaration": true, - "module": 199, - "skipDefaultLibCheck": true, - "skipLibCheck": true - }, - "referencedMap": { - "./index.ts": [ - "./node_modules/ky/distribution/index.d.ts" - ] - }, - "exportedModulesMap": { - "./index.ts": [ - "./node_modules/ky/distribution/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.esnext.full.d.ts", - "./index.ts", - "./node_modules/ky/distribution/index.d.ts" - ], - "affectedFilesPendingEmit": [ - [ - "./index.ts", - "Js | Dts" - ] - ] - }, - "version": "FakeTSVersion", - "size": 1182 -} - - - -Change:: no-change-run -Input:: - - -Output:: -/lib/tsc -b /src/project --explainFiles --listEmittedFiles --v -[12:00:22 AM] Projects in this build: - * src/project/tsconfig.json - -[12:00:23 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/project/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted - -[12:00:24 AM] Building project '/src/project/tsconfig.json'... - -src/project/index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/src/project/node_modules/ky/distribution/index" but cannot be named. - -2 export const api = ky.extend({}); -   ~~~ - -lib/lib.esnext.full.d.ts - Default library for target 'esnext' -src/project/node_modules/ky/distribution/index.d.ts - Imported via 'ky' from file 'src/project/index.ts' - File is ECMAScript module because 'src/project/node_modules/ky/package.json' has field "type" with value "module" -src/project/index.ts - Matched by default include pattern '**/*' - File is ECMAScript module because 'src/project/package.json' has field "type" with value "module" - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped - - 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 00575a9cd99c7..806011bbc1ea9 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 @@ -80,9 +80,9 @@ src/child/child2.ts Matched by default include pattern '**/*' src/child/child.ts Matched by default include pattern '**/*' -[12:00:22 AM] Project 'src/main/tsconfig.json' is out of date because output file 'src/mainResult.tsbuildinfo' does not exist +[12:00:21 AM] Project 'src/main/tsconfig.json' is out of date because output file 'src/mainResult.tsbuildinfo' does not exist -[12:00:23 AM] Building project '/src/main/tsconfig.json'... +[12:00:22 AM] Building project '/src/main/tsconfig.json'... ======== Resolving module 'child' from '/src/main/main.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -145,74 +145,10 @@ define("child", ["require", "exports", "child2"], function (require, exports, ch //// [/src/childResult.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./child","sourceFiles":["./child/child2.ts","./child/child.ts"],"js":{"sections":[{"pos":0,"end":543,"kind":"text"}],"hash":"3880478650-define(\"child2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.child2 = void 0;\n function child2() {\n }\n exports.child2 = child2;\n});\ndefine(\"child\", [\"require\", \"exports\", \"child2\"], function (require, exports, child2_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.child = void 0;\n function child() {\n (0, child2_1.child2)();\n }\n exports.child = child;\n});\n"},"dts":{"sections":[{"pos":0,"end":126,"kind":"text"}],"hash":"2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./child/child2.ts","./child/child.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6507293504-export function child2() {\n}\n","-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./childResult.js"},"outSignature":"2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","latestChangedDtsFile":"./childResult.d.ts"},"version":"FakeTSVersion"} - -//// [/src/childResult.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/childResult.js ----------------------------------------------------------------------- -text: (0-543) -define("child2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.child2 = void 0; - function child2() { - } - exports.child2 = child2; -}); -define("child", ["require", "exports", "child2"], function (require, exports, child2_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.child = void 0; - function child() { - (0, child2_1.child2)(); - } - exports.child = child; -}); - -====================================================================== -====================================================================== -File:: /src/childResult.d.ts ----------------------------------------------------------------------- -text: (0-126) -declare module "child2" { - export function child2(): void; -} -declare module "child" { - export function child(): void; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./child/child2.ts","./child/child.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","6507293504-export function child2() {\n}\n","-11458139532-import { child2 } from \"../child/child2\";\nexport function child() {\n child2();\n}\n"],"root":[2,3],"options":{"composite":true,"module":2,"outFile":"./childResult.js"},"outSignature":"2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","latestChangedDtsFile":"./childResult.d.ts"},"version":"FakeTSVersion"} //// [/src/childResult.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./child", - "sourceFiles": [ - "./child/child2.ts", - "./child/child.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 543, - "kind": "text" - } - ], - "hash": "3880478650-define(\"child2\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.child2 = void 0;\n function child2() {\n }\n exports.child2 = child2;\n});\ndefine(\"child\", [\"require\", \"exports\", \"child2\"], function (require, exports, child2_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.child = void 0;\n function child() {\n (0, child2_1.child2)();\n }\n exports.child = child;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 126, - "kind": "text" - } - ], - "hash": "2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -243,7 +179,7 @@ declare module "child" { "latestChangedDtsFile": "./childResult.d.ts" }, "version": "FakeTSVersion", - "size": 1976 + "size": 1007 } //// [/src/mainResult.d.ts] @@ -265,62 +201,10 @@ define("main", ["require", "exports", "child"], function (require, exports, chil //// [/src/mainResult.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./main","sourceFiles":["./main/main.ts"],"js":{"sections":[{"pos":0,"end":286,"kind":"text"}],"hash":"-20486057550-define(\"main\", [\"require\", \"exports\", \"child\"], function (require, exports, child_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.main = void 0;\n function main() {\n (0, child_1.child)();\n }\n exports.main = main;\n});\n"},"dts":{"sections":[{"pos":0,"end":60,"kind":"text"}],"hash":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./mainResult.js"},"outSignature":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n","latestChangedDtsFile":"./mainResult.d.ts"},"version":"FakeTSVersion"} - -//// [/src/mainResult.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/mainResult.js ----------------------------------------------------------------------- -text: (0-286) -define("main", ["require", "exports", "child"], function (require, exports, child_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.main = void 0; - function main() { - (0, child_1.child)(); - } - exports.main = main; -}); - -====================================================================== -====================================================================== -File:: /src/mainResult.d.ts ----------------------------------------------------------------------- -text: (0-60) -declare module "main" { - export function main(): void; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./childresult.d.ts","./main/main.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","2074776633-declare module \"child2\" {\n export function child2(): void;\n}\ndeclare module \"child\" {\n export function child(): void;\n}\n","-8784613407-import { child } from \"child\";\nexport function main() {\n child();\n}\n"],"root":[3],"options":{"composite":true,"module":2,"outFile":"./mainResult.js"},"outSignature":"7955277823-declare module \"main\" {\n export function main(): void;\n}\n","latestChangedDtsFile":"./mainResult.d.ts"},"version":"FakeTSVersion"} //// [/src/mainResult.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./main", - "sourceFiles": [ - "./main/main.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 286, - "kind": "text" - } - ], - "hash": "-20486057550-define(\"main\", [\"require\", \"exports\", \"child\"], function (require, exports, child_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.main = void 0;\n function main() {\n (0, child_1.child)();\n }\n exports.main = main;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 60, - "kind": "text" - } - ], - "hash": "7955277823-declare module \"main\" {\n export function main(): void;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -347,7 +231,7 @@ declare module "main" { "latestChangedDtsFile": "./mainResult.d.ts" }, "version": "FakeTSVersion", - "size": 1623 + "size": 1022 } @@ -359,13 +243,13 @@ Input:: Output:: /lib/tsc --b /src/main/tsconfig.json -v --traceResolution --explainFiles -[12:00:31 AM] Projects in this build: +[12:00:29 AM] Projects in this build: * src/child/tsconfig.json * src/main/tsconfig.json -[12:00:32 AM] Project 'src/child/tsconfig.json' is out of date because buildinfo file 'src/childResult.tsbuildinfo' indicates that file 'src/child/child2.ts' was root file of compilation but not any more. +[12:00:30 AM] Project 'src/child/tsconfig.json' is out of date because buildinfo file 'src/childResult.tsbuildinfo' indicates that file 'src/child/child2.ts' was root file of compilation but not any more. -[12:00:33 AM] Building project '/src/child/tsconfig.json'... +[12:00:31 AM] Building project '/src/child/tsconfig.json'... ======== Resolving module '../child/child2' from '/src/child/child.ts'. ======== Module resolution kind is not specified, using 'Classic'. @@ -384,9 +268,9 @@ lib/lib.d.ts Default library for target 'es5' src/child/child.ts Matched by default include pattern '**/*' -[12:00:34 AM] Project 'src/main/tsconfig.json' can't be built because its dependency 'src/child' has errors +[12:00:32 AM] Project 'src/main/tsconfig.json' can't be built because its dependency 'src/child' has errors -[12:00:35 AM] Skipping build of project '/src/main/tsconfig.json' because its dependency '/src/child' has errors +[12:00:33 AM] Skipping build of project '/src/main/tsconfig.json' because its dependency '/src/child' has errors Found 1 error. diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js deleted file mode 100644 index 9f4ff7b992d5f..0000000000000 --- a/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js +++ /dev/null @@ -1,256 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; -interface SymbolConstructor { - readonly species: symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} - - -//// [/src/common/nominal.js] -/** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ - - -//// [/src/common/tsconfig.json] -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "composite": true, - "outFile": "common.js", - - }, - "include": ["nominal.js"] -} - -//// [/src/sub-project/index.js] -/** - * @typedef {Nominal} MyNominal - */ -const c = /** @type {*} */(null); - - -//// [/src/sub-project/tsconfig.json] -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "ignoreDeprecations":"5.0", - "composite": true, - "outFile": "sub-project.js", - - }, - "references": [ - { "path": "../common", "prepend": true } - ], - "include": ["./index.js"] -} - -//// [/src/sub-project-2/index.js] -const variable = { - key: /** @type {MyNominal} */('value'), -}; - -/** - * @return {keyof typeof variable} - */ -function getVar() { - return 'key'; -} - - -//// [/src/sub-project-2/tsconfig.json] -{ - "extends": "../tsconfig.base.json", - "compilerOptions": { - "ignoreDeprecations":"5.0", - "composite": true, - "outFile": "sub-project-2.js", - - }, - "references": [ - { "path": "../sub-project", "prepend": true } - ], - "include": ["./index.js"] -} - -//// [/src/tsconfig.base.json] -{ - "compilerOptions": { - "skipLibCheck": true, - "rootDir": "./", - "allowJs": true, - "checkJs": true, - "declaration": true - } -} - -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "ignoreDeprecations":"5.0", - "composite": true, - "outFile": "src.js" - }, - "references": [ - { "path": "./sub-project", "prepend": true }, - { "path": "./sub-project-2", "prepend": true } - ], - "include": [] -} - - - -Output:: -/lib/tsc -b /src -src/sub-project/tsconfig.json:10:9 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -10 { "path": "../common", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/common/common.d.ts] -type Nominal = T & { - [Symbol.species]: Name; -}; - - -//// [/src/common/common.js] -/** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ - - -//// [/src/common/common.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["./nominal.js"],"js":{"sections":[{"pos":0,"end":80,"kind":"text"}],"hash":"-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n"},"dts":{"sections":[{"pos":0,"end":61,"kind":"text"}],"hash":"-12106547178-type Nominal = T & {\n [Symbol.species]: Name;\n};\n"}},"program":{"fileNames":["../../lib/lib.d.ts","./nominal.js"],"fileInfos":["-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n","-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n"],"root":[2],"options":{"allowJs":true,"checkJs":true,"composite":true,"declaration":true,"outFile":"./common.js","rootDir":"..","skipLibCheck":true},"outSignature":"-12106547178-type Nominal = T & {\n [Symbol.species]: Name;\n};\n","latestChangedDtsFile":"./common.d.ts"},"version":"FakeTSVersion"} - -//// [/src/common/common.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/common/common.js ----------------------------------------------------------------------- -text: (0-80) -/** - * @template T, Name - * @typedef {T & {[Symbol.species]: Name}} Nominal - */ - -====================================================================== -====================================================================== -File:: /src/common/common.d.ts ----------------------------------------------------------------------- -text: (0-61) -type Nominal = T & { - [Symbol.species]: Name; -}; - -====================================================================== - -//// [/src/common/common.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "./nominal.js" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 80, - "kind": "text" - } - ], - "hash": "-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 61, - "kind": "text" - } - ], - "hash": "-12106547178-type Nominal = T & {\n [Symbol.species]: Name;\n};\n" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./nominal.js" - ], - "fileInfos": { - "../../lib/lib.d.ts": "-32082413277-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };\ninterface SymbolConstructor {\n readonly species: symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\n", - "./nominal.js": "-1932521178-/**\n * @template T, Name\n * @typedef {T & {[Symbol.species]: Name}} Nominal\n */\n" - }, - "root": [ - [ - 2, - "./nominal.js" - ] - ], - "options": { - "allowJs": true, - "checkJs": true, - "composite": true, - "declaration": true, - "outFile": "./common.js", - "rootDir": "..", - "skipLibCheck": true - }, - "outSignature": "-12106547178-type Nominal = T & {\n [Symbol.species]: Name;\n};\n", - "latestChangedDtsFile": "./common.d.ts" - }, - "version": "FakeTSVersion", - "size": 1507 -} - - - -Change:: incremental-declaration-doesnt-change -Input:: -//// [/src/sub-project/index.js] -/** - * @typedef {Nominal} MyNominal - */ -const c = /** @type {*} */(undefined); - - - - -Output:: -/lib/tsc -b /src -src/sub-project/tsconfig.json:10:9 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -10 { "path": "../common", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js b/tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js similarity index 64% rename from tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js rename to tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js index 75c2aa038f0c1..c73edeeab60df 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js +++ b/tests/baselines/reference/tsbuild/outFile/baseline-sectioned-sourcemaps.js @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -153,9 +149,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:30 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist +[12:00:29 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] Building project '/src/second/tsconfig.json'... +[12:00:30 AM] Building project '/src/second/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -163,31 +159,9 @@ src/second/second_part1.ts Matched by default include pattern '**/*' src/second/second_part2.ts Matched by default include pattern '**/*' -[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:39 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] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ +[12:00:40 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -197,11 +171,20 @@ src/2/second-output.d.ts Output from referenced project 'src/second/tsconfig.json' included because '--outFile' specified src/third/third_part1.ts Part of 'files' list in tsconfig.json - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - +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/2/second-output.d.ts] declare namespace N { @@ -589,75 +572,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -694,7 +612,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -998,68 +916,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1100,7 +960,159 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 13) Source(1, 5) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 16) + SourceIndex(0) +6 >Emitted(1, 18) Source(1, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +6 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +7 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +8 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +--- +>>>c.doSomething(); +1 > +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 2) Source(2, 2) + SourceIndex(0) +3 >Emitted(2, 3) Source(2, 3) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1265 } @@ -1125,14 +1137,14 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:00:48 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: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: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:50 AM] Building project '/src/first/tsconfig.json'... +[12:00:59 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -1142,33 +1154,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_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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:01 AM] Building project '/src/third/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' -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[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' -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ +[12:01:09 AM] Building project '/src/third/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -1178,11 +1168,21 @@ src/2/second-output.d.ts Output from referenced project 'src/second/tsconfig.json' included because '--outFile' specified src/third/third_part1.ts Part of 'files' list in tsconfig.json - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - +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.d.ts] interface TheFirst { @@ -1485,68 +1485,10 @@ 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; };","-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-103) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 103, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1587,7 +1529,54 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2605 + "size": 1270 +} + +//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents +//// [/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.js.map.baseline.txt] file written with same contents +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1264 } @@ -1612,14 +1601,14 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose --explainFiles -[12:01:05 AM] Projects in this build: +[12:01:21 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[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: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:07 AM] Building project '/src/first/tsconfig.json'... +[12:01:23 AM] Building project '/src/first/tsconfig.json'... lib/lib.d.ts Default library for target 'es5' @@ -1629,47 +1618,24 @@ 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:15 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:16 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:17 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - -lib/lib.d.ts - Default library for target 'es5' -src/first/bin/first-output.d.ts - Output from referenced project 'src/first/tsconfig.json' included because '--outFile' specified -src/2/second-output.d.ts - Output from referenced project 'src/second/tsconfig.json' included because '--outFile' specified -src/third/third_part1.ts - Part of 'files' list in tsconfig.json - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - +[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:31 AM] Project 'src/third/tsconfig.json' is up to date with .d.ts files from its dependencies + +[12:01:32 AM] Updating output timestamps 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/first/bin/first-output.d.ts.map] file written with same contents //// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents @@ -1858,69 +1824,10 @@ 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; };","-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-119) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 119, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1961,6 +1868,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2677 + "size": 1285 } +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] file changed its modified time 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 9e6721287c0fa..e23cb13bf1d94 100644 --- a/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js @@ -83,7 +83,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -105,7 +104,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -121,12 +119,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -173,75 +169,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -278,6 +209,6 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } diff --git a/tests/baselines/reference/tsbuild/outFile/clean-projects.js b/tests/baselines/reference/tsbuild/outFile/clean-projects.js index 72a3b5ab607aa..37b14ba24cac8 100644 --- a/tests/baselines/reference/tsbuild/outFile/clean-projects.js +++ b/tests/baselines/reference/tsbuild/outFile/clean-projects.js @@ -50,75 +50,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -155,7 +90,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -185,68 +120,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -287,7 +164,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 } //// [/src/first/first_PART1.ts] @@ -359,7 +236,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -373,6 +249,63 @@ class C { "references": [] } +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1265 +} + //// [/src/third/third_part1.ts] var c = new C(); c.doSomething(); @@ -381,7 +314,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -397,12 +329,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -424,6 +354,11 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.js] unlink //// [/src/first/bin/first-output.js.map] unlink //// [/src/first/bin/first-output.tsbuildinfo] unlink +//// [/src/third/thirdjs/output/third-output.d.ts] unlink +//// [/src/third/thirdjs/output/third-output.d.ts.map] unlink +//// [/src/third/thirdjs/output/third-output.js] unlink +//// [/src/third/thirdjs/output/third-output.js.map] unlink +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] unlink Change:: no-change-run 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 438d41576c71e..17de0e161b806 100644 --- a/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js +++ b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js @@ -49,75 +49,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -154,7 +89,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -184,68 +119,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -286,7 +163,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 } //// [/src/first/first_PART1.ts] @@ -358,7 +235,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -372,6 +248,63 @@ class C { "references": [] } +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1265 +} + //// [/src/third/third_part1.ts] var c = new C(); c.doSomething(); @@ -380,7 +313,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -396,12 +328,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } 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 e0531ddcaa505..126d05075904b 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 @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "module": "none", "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "module": "none", "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - + "path": "../first" }, { - "path": "../second", - + "path": "../second" } ] } @@ -136,22 +132,22 @@ c.doSomething(); Output:: /lib/tsc --b /src/third --verbose -[12:00:26 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:27 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/tsconfig.tsbuildinfo' does not exist +[12:00:25 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/tsconfig.tsbuildinfo' does not exist -[12:00:28 AM] Building project '/src/first/tsconfig.json'... +[12:00:26 AM] Building project '/src/first/tsconfig.json'... -[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:42 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/second/tsconfig.tsbuildinfo' does not exist -[12:00:45 AM] Building project '/src/second/tsconfig.json'... +[12:00:43 AM] Building project '/src/second/tsconfig.json'... -[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:55 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/tsconfig.tsbuildinfo' does not exist -[12:00:58 AM] Building project '/src/third/tsconfig.json'... +[12:00:56 AM] Building project '/src/third/tsconfig.json'... exitCode:: ExitStatus.Success 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 844d4847150aa..36234a5e967ea 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 @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -145,40 +141,15 @@ Output:: [12:00:21 AM] Building project '/src/first/tsconfig.json'... -[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:30 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] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[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:40 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] Building project '/src/third/tsconfig.json'... +[12:00:41 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] @@ -216,75 +187,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -321,7 +227,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -351,68 +257,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -453,7 +301,61 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + } + }, + "version": "FakeTSVersion", + "size": 1155 } @@ -478,47 +380,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:45 AM] Projects in this build: +[12:00:52 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:47 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_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 file 'src/third/thirdjs/output/third-output.js' does not exist - -[12:00:57 AM] Building project '/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' -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:00:54 AM] Building project '/src/first/tsconfig.json'... -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ +[12:01:01 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' -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:01:02 AM] Project 'src/third/tsconfig.json' is up to date with .d.ts files from its dependencies -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ +[12:01:03 AM] Updating output timestamps of project '/src/third/tsconfig.json'... - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -536,69 +413,10 @@ 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; };","-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -639,7 +457,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2682 + "size": 1287 } @@ -664,47 +482,22 @@ console.log(s);console.log(s); Output:: /lib/tsc --b /src/third --verbose --incremental -[12:00:59 AM] Projects in this build: +[12:01:10 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:01:00 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] Building project '/src/first/tsconfig.json'... - -[12:01:09 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:10 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:01:11 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:11 AM] Building project '/src/third/tsconfig.json'... +[12:01:12 AM] Building project '/src/first/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[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' -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ +[12:01:20 AM] Project 'src/third/tsconfig.json' is up to date with .d.ts files from its dependencies -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:01:21 AM] Updating output timestamps of project '/src/third/tsconfig.json'... -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -723,70 +516,10 @@ 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; };","-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-136) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 136, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -827,6 +560,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2755 + "size": 1302 } +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] file changed its modified time 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 511870b1c4fc1..05ad3c130c315 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,75 +49,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -154,7 +89,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -184,68 +119,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -286,7 +163,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 } //// [/src/first/first_PART1.ts] @@ -358,7 +235,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -372,6 +248,63 @@ class C { "references": [] } +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1265 +} + //// [/src/third/third_part1.ts] var c = new C(); c.doSomething(); @@ -380,7 +313,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -396,12 +328,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -410,46 +340,24 @@ c.doSomething(); Output:: /lib/tsc --b /src/third --verbose -[12:00:43 AM] Projects in this build: +[12:00:50 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 for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion' - -[12:00:45 AM] Building project '/src/first/tsconfig.json'... - -[12:00:54 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:51 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:55 AM] Building project '/src/second/tsconfig.json'... +[12:00:52 AM] Building project '/src/first/tsconfig.json'... -[12:01:04 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist +[12:01:00 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:05 AM] Building project '/src/third/tsconfig.json'... +[12:01:01 AM] Building project '/src/second/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:01:09 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' -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ +[12:01:10 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] file written with same contents @@ -457,40 +365,10 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/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; };","-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"} +{"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] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -527,7 +405,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2711 + "size": 1223 } //// [/src/first/bin/first-output.d.ts] file written with same contents @@ -535,41 +413,10 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/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; };","-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"} +{"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] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -610,6 +457,52 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSCurrentVersion", - "size": 2616 + "size": 1279 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents +//// [/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] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSCurrentVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSCurrentVersion", + "size": 1272 } 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 9027b0b53bf11..d503f5665be21 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 @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -145,40 +141,15 @@ Output:: [12:00:21 AM] Building project '/src/first/tsconfig.json'... -[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:30 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] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[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:40 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:43 AM] Building project '/src/third/tsconfig.json'... +[12:00:41 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] @@ -216,75 +187,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -321,7 +227,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -351,68 +257,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -453,6 +301,21 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 } +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + 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 c5304bef09139..de13deb4e963a 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,75 +50,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -155,7 +90,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -184,66 +119,8 @@ function f() { //// [/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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - //// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -284,7 +161,7 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 } //// [/src/first/first_PART1.ts] @@ -356,7 +233,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -370,6 +246,63 @@ class C { "references": [] } +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1265 +} + //// [/src/third/third_part1.ts] var c = new C(); c.doSomething(); @@ -378,7 +311,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -394,12 +326,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -408,47 +338,24 @@ c.doSomething(); Output:: /lib/tsc --b /src/third --verbose -[12:00:44 AM] Projects in this build: +[12:00:51 AM] Projects in this build: * src/first/tsconfig.json * src/second/tsconfig.json * src/third/tsconfig.json -[12:00:45 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist - -[12:00:46 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_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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:00:57 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:00:52 AM] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ +[12:00:53 AM] Building project '/src/first/tsconfig.json'... -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:01:01 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' -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ +[12:01:02 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:03 AM] Building project '/src/third/tsconfig.json'... -Found 2 errors. +[12:01:04 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts] file written with same contents @@ -456,7 +363,7 @@ exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated //// [/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; };","-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"} +{"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 +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-incremental.js similarity index 69% rename from tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js rename to tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-incremental.js index b3da523a94bd8..d1c0e0efa5e8f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js +++ b/tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-incremental.js @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "incremental": true, "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -145,40 +141,15 @@ Output:: [12:00:21 AM] Building project '/src/first/tsconfig.json'... -[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:30 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] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[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:40 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] Building project '/src/third/tsconfig.json'... +[12:00:41 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] @@ -567,75 +538,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -672,7 +578,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -976,68 +882,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1078,6 +926,155 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 13) Source(1, 5) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 16) + SourceIndex(0) +6 >Emitted(1, 18) Source(1, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +6 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +7 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +8 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +--- +>>>c.doSomething(); +1 > +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 2) Source(2, 2) + SourceIndex(0) +3 >Emitted(2, 3) Source(2, 3) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + } + }, + "version": "FakeTSVersion", + "size": 1155 } 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/when-final-project-is-not-composite-but-uses-project-references.js similarity index 64% rename from tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js rename to tests/baselines/reference/tsbuild/outFile/when-final-project-is-not-composite-but-uses-project-references.js index 6eb720001ecd0..01e26e7db1fd8 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/when-final-project-is-not-composite-but-uses-project-references.js @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -145,40 +141,15 @@ Output:: [12:00:21 AM] Building project '/src/first/tsconfig.json'... -[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:30 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] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[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:40 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:43 AM] Building project '/src/third/tsconfig.json'... +[12:00:41 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] @@ -567,75 +538,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -672,7 +578,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -976,68 +882,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1078,9 +926,119 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 } +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 13) Source(1, 5) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 16) + SourceIndex(0) +6 >Emitted(1, 18) Source(1, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +6 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +7 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +8 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +--- +>>>c.doSomething(); +1 > +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 2) Source(2, 2) + SourceIndex(0) +3 >Emitted(2, 3) Source(2, 3) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.js.map + Change:: incremental-declaration-doesnt-change @@ -1103,47 +1061,22 @@ console.log(s); Output:: /lib/tsc --b /src/third --verbose -[12:00:49 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: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:00:51 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_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 file 'src/third/thirdjs/output/third-output.js' does not exist - -[12:01:01 AM] Building project '/src/third/tsconfig.json'... +[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' -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:00:57 AM] Building project '/src/first/tsconfig.json'... -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ +[12:01:04 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' -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:01:05 AM] Project 'src/third/tsconfig.json' is up to date with .d.ts files from its dependencies -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ +[12:01:06 AM] Updating output timestamps of project '/src/third/tsconfig.json'... - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts.map] file written with same contents @@ -1333,69 +1266,10 @@ 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; };","-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1436,6 +1310,6 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2682 + "size": 1287 } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js similarity index 69% rename from tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js rename to tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js index 644a6e2d18e3b..4a7842b695de1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js +++ b/tests/baselines/reference/tsbuild/outFile/when-final-project-specifies-tsBuildInfoFile.js @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "tsBuildInfoFile": "./thirdjs/output/third.tsbuildinfo", @@ -123,12 +121,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -146,40 +142,15 @@ Output:: [12:00:21 AM] Building project '/src/first/tsconfig.json'... -[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:30 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] Building project '/src/second/tsconfig.json'... +[12:00:31 AM] Building project '/src/second/tsconfig.json'... -[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:40 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third.tsbuildinfo' does not exist -[12:00:43 AM] Building project '/src/third/tsconfig.json'... +[12:00:41 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] @@ -568,75 +539,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -673,7 +579,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -977,68 +883,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -1079,6 +927,159 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 13) Source(1, 5) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 16) + SourceIndex(0) +6 >Emitted(1, 18) Source(1, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +4 >Emitted(1, 9) Source(1, 9) + SourceIndex(0) +5 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +6 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +7 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) +8 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +--- +>>>c.doSomething(); +1 > +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 2) Source(2, 2) + SourceIndex(0) +3 >Emitted(2, 3) Source(2, 3) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 16) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "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": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1305 } 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 8f655d16c3a7c..36e58a0608de9 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 @@ -84,7 +84,6 @@ class C { //// [/src/second/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -106,7 +105,6 @@ c.doSomething(); //// [/src/third/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "target": "es5", "composite": true, "removeComments": true, @@ -122,12 +120,10 @@ c.doSomething(); ], "references": [ { - "path": "../first", - "prepend": true + "path": "../first" }, { - "path": "../second", - "prepend": true + "path": "../second" } ] } @@ -145,40 +141,15 @@ Output:: [12:00:20 AM] Building project '/src/first/tsconfig.json'... -[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:29 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] Building project '/src/second/tsconfig.json'... +[12:00:30 AM] Building project '/src/second/tsconfig.json'... -[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:39 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] Building project '/src/third/tsconfig.json'... +[12:00:40 AM] Building project '/src/third/tsconfig.json'... -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/2/second-output.d.ts] @@ -216,75 +187,10 @@ 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../lib/lib.d.ts", @@ -321,7 +227,7 @@ declare class C { "latestChangedDtsFile": "./second-output.d.ts" }, "version": "FakeTSVersion", - "size": 2704 + "size": 1216 } //// [/src/first/bin/first-output.d.ts] @@ -351,68 +257,10 @@ 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; };","-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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== +{"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.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, "program": { "fileNames": [ "../../../lib/lib.d.ts", @@ -453,7 +301,64 @@ declare function f(): string; "latestChangedDtsFile": "./first-output.d.ts" }, "version": "FakeTSVersion", - "size": 2609 + "size": 1272 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js] +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../third_part1.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"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":"1894672131-declare var c: C;\n","latestChangedDtsFile":"./third-output.d.ts"},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../lib/lib.d.ts", + "../../../first/bin/first-output.d.ts", + "../../../2/second-output.d.ts", + "../../third_part1.ts" + ], + "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", + "../../../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": "7305100057-var c = new C();\nc.doSomething();\n" + }, + "root": [ + [ + 4, + "../../third_part1.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "outFile": "./third-output.js", + "removeComments": true, + "skipDefaultLibCheck": true, + "sourceMap": true, + "strict": false, + "target": 1 + }, + "outSignature": "1894672131-declare var c: C;\n", + "latestChangedDtsFile": "./third-output.d.ts" + }, + "version": "FakeTSVersion", + "size": 1265 } @@ -465,47 +370,23 @@ Input:: Output:: /lib/tsc --b /src/third --verbose -[12:00:45 AM] Projects in this build: +[12:00:52 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 up to date but needs to update timestamps of output files that are older than input files - -[12:00:47 AM] Updating output timestamps of project '/src/first/tsconfig.json'... - -[12:00:50 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:51 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:52 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ +[12:00:53 AM] Project 'src/first/tsconfig.json' is up to date but needs to update timestamps of output files that are older than input files -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. +[12:00:54 AM] Updating output timestamps of project '/src/first/tsconfig.json'... -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ +[12:00:57 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:58 AM] Project 'src/third/tsconfig.json' is up to date with .d.ts files from its dependencies -Found 2 errors. +[12:00:59 AM] Updating output timestamps of project '/src/third/tsconfig.json'... -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated +exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.tsbuildinfo] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js deleted file mode 100644 index 331f683f6b567..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,1948 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:18 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:20 AM] Building project '/src/first/tsconfig.json'... - -[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:31 AM] Building project '/src/second/tsconfig.json'... - -[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:42 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2704 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2609 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:48 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:00:50 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_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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:01 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-103) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 103, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2605 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:05 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:07 AM] Building project '/src/first/tsconfig.json'... - -[12:01:15 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:16 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:17 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-119) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 119, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2677 -} - 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 deleted file mode 100644 index 23abb0d3aeb12..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js +++ /dev/null @@ -1,1081 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:22 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:24 AM] Building project '/src/first/tsconfig.json'... - -[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:35 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/thirdjs/output/third-output.js' does not exist - -[12:00:46 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2704 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2609 -} - 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 deleted file mode 100644 index 43ffb58baf82b..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,3171 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -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()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:21 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:23 AM] Building project '/src/first/tsconfig.json'... - -[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:34 AM] Building project '/src/second/tsconfig.json'... - -[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:45 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) -4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(20, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(20, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(20, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(20, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(20, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(20, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(20, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(20, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(20, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(20, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(20, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(20, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(20, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(20, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(20, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(20, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(20, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(20, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(20, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(20, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(20, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(20, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(20, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-877) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-145) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 145, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 3830 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# 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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-709) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3726 -} - - - -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); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:51 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:00:53 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:03 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:04 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# 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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-708) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-198) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 198, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3723 -} - - - -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); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:08 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:10 AM] Building project '/src/first/tsconfig.json'... - -[12:01:18 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:19 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:20 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-724) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-198) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 198, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3795 -} - - - -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); -function forfirstfirst_PART1Rest() { }console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:24 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:26 AM] Building project '/src/first/tsconfig.json'... - -[12:01:34 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/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:36 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-158) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-198) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 158, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 198, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2910 -} - 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 deleted file mode 100644 index d445e6fa81683..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,2339 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -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()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:20 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:22 AM] Building project '/src/first/tsconfig.json'... - -[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:33 AM] Building project '/src/second/tsconfig.json'... - -[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:44 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) -4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(20, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(20, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(20, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(20, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(20, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(20, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(20, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(20, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(20, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(20, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(20, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(20, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(20, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(20, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(20, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(20, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(20, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(20, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(20, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(20, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(20, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(20, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(20, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-877) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-145) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 145, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 3830 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# 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,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-143) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 143, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2841 -} - - - -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); -function forfirstfirst_PART1Rest() { }console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:50 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:00:52 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:01 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:02 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-159) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 159, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2913 -} - - - -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); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:06 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:08 AM] Building project '/src/first/tsconfig.json'... - -[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:17 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:18 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-725) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3799 -} - 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 deleted file mode 100644 index 97324640572ee..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,3572 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -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()); - - -//// [/src/first/first_part3.ts] -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, - "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": [] -} - -//// [/src/second/second_part1.ts] -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"); - } -} - -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, - "strict": false, - "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(); -function forthirdthird_part1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} -function thirdthird_part1Spread(...b: number[]) { } -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, - "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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:27 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:29 AM] Building project '/src/first/tsconfig.json'... - -[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:40 AM] Building project '/src/second/tsconfig.json'... - -[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:51 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; -declare const secondsecond_part2_ar: number[]; -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(5, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(5, 43) Source(12, 35) + SourceIndex(0) -4 >Emitted(5, 52) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>declare function secondsecond_part2Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(9, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(7, 10) + SourceIndex(1) -3 >Emitted(9, 42) Source(7, 34) + SourceIndex(1) -4 >Emitted(9, 43) Source(7, 35) + SourceIndex(1) -5 >Emitted(9, 46) Source(7, 38) + SourceIndex(1) -6 >Emitted(9, 49) Source(7, 41) + SourceIndex(1) -7 >Emitted(9, 55) Source(7, 47) + SourceIndex(1) -8 >Emitted(9, 57) Source(7, 49) + SourceIndex(1) -9 >Emitted(9, 65) Source(7, 54) + SourceIndex(1) ---- ->>>declare const secondsecond_part2_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > secondsecond_part2_ar -5 > = [20, 30] -6 > ; -1 >Emitted(10, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(10, 9) Source(8, 1) + SourceIndex(1) -3 >Emitted(10, 15) Source(8, 7) + SourceIndex(1) -4 >Emitted(10, 36) Source(8, 28) + SourceIndex(1) -5 >Emitted(10, 46) Source(8, 39) + SourceIndex(1) -6 >Emitted(10, 47) Source(8, 40) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part2_ar = [20, 30]; -secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(37, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(37, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(38, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(38, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(38, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(39, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(39, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(39, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(40, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(40, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(40, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(40, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(40, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(40, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(40, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(40, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(41, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(41, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(42, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(42, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(42, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(42, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(43, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(43, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(43, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(43, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(43, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(44, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(44, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(44, 35) Source(12, 35) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(45, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(45, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(45, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(45, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(45, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(45, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(45, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(45, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(45, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(45, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(45, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(45, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(45, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(45, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(45, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(45, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(45, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(45, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(45, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(45, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(45, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(45, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(45, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(45, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(45, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(46, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(46, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(47, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(48, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(49, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(49, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(50, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(50, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(50, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(51, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(51, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(51, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(51, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(51, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(51, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(51, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(51, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(52, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(52, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(53, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(53, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(54, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(54, 6) Source(5, 2) + SourceIndex(1) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(55, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(55, 10) Source(7, 10) + SourceIndex(1) -3 >Emitted(55, 34) Source(7, 34) + SourceIndex(1) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(56, 5) Source(7, 35) + SourceIndex(1) -2 >Emitted(56, 16) Source(7, 49) + SourceIndex(1) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(57, 10) Source(7, 35) + SourceIndex(1) -2 >Emitted(57, 20) Source(7, 49) + SourceIndex(1) -3 >Emitted(57, 22) Source(7, 35) + SourceIndex(1) -4 >Emitted(57, 43) Source(7, 49) + SourceIndex(1) -5 >Emitted(57, 45) Source(7, 35) + SourceIndex(1) -6 >Emitted(57, 49) Source(7, 49) + SourceIndex(1) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(58, 9) Source(7, 35) + SourceIndex(1) -2 >Emitted(58, 31) Source(7, 49) + SourceIndex(1) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(60, 1) Source(7, 53) + SourceIndex(1) -2 >Emitted(60, 2) Source(7, 54) + SourceIndex(1) ---- ->>>var secondsecond_part2_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > secondsecond_part2_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(61, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(61, 5) Source(8, 7) + SourceIndex(1) -3 >Emitted(61, 26) Source(8, 28) + SourceIndex(1) -4 >Emitted(61, 29) Source(8, 31) + SourceIndex(1) -5 >Emitted(61, 30) Source(8, 32) + SourceIndex(1) -6 >Emitted(61, 32) Source(8, 34) + SourceIndex(1) -7 >Emitted(61, 34) Source(8, 36) + SourceIndex(1) -8 >Emitted(61, 36) Source(8, 38) + SourceIndex(1) -9 >Emitted(61, 37) Source(8, 39) + SourceIndex(1) -10>Emitted(61, 38) Source(8, 40) + SourceIndex(1) ---- ->>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >secondsecond_part2Spread -3 > ( -4 > 10 -5 > , ... -6 > secondsecond_part2_ar -7 > ); -1->Emitted(62, 1) Source(9, 1) + SourceIndex(1) -2 >Emitted(62, 25) Source(9, 25) + SourceIndex(1) -3 >Emitted(62, 55) Source(9, 26) + SourceIndex(1) -4 >Emitted(62, 57) Source(9, 28) + SourceIndex(1) -5 >Emitted(62, 67) Source(9, 33) + SourceIndex(1) -6 >Emitted(62, 88) Source(9, 54) + SourceIndex(1) -7 >Emitted(62, 99) Source(9, 56) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (491-980):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (981-1361):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (1362-2030) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part2_ar = [20, 30]; -secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-257) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; -declare const secondsecond_part2_ar: number[]; - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 257, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 5901 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -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;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] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -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 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > firstfirst_part3_ar -5 > = [20, 30] -6 > ; -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 - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -//# 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;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] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(42, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(42, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(42, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(42, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(42, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(42, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(42, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(42, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(42, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(43, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(43, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(43, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(44, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(44, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(44, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(44, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(45, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(45, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > firstfirst_part3Spread -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 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -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->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -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(5, 33) + SourceIndex(2) -2 >Emitted(49, 31) Source(5, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -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-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -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-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -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":"-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (491-980):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (981-1361):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (1362-1854) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-307) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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": "-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", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 307, - "kind": "text" - } - ], - "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": "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": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 5768 -} - - - -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); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:57 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:00:59 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:08 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:09 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -//# 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;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] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > firstfirst_part3Spread -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 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -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->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -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(5, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(5, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -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-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -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-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -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":"-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (491-980):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (981-1361):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (1362-1870) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-307) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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": "-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", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 307, - "kind": "text" - } - ], - "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": "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": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 5842 -} - - - -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); -function forfirstfirst_PART1Rest() { }console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:13 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:15 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_part2.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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:25 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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;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] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -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 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > firstfirst_part3_ar -5 > = [20, 30] -6 > ; -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 - -//// [/src/first/bin/first-output.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -//# 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;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] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(26, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(26, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(26, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(26, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(26, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(26, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(27, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(27, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(27, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(27, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(27, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(27, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(27, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(27, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(28, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(28, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(28, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(28, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(29, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(29, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(29, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(29, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(29, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(29, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(29, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(29, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(30, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(30, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(30, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(30, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(30, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(30, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(30, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(30, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(30, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(31, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(31, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(31, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(32, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(32, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(32, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(32, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(33, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(33, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > firstfirst_part3Spread -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 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -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->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -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(5, 33) + SourceIndex(2) -2 >Emitted(37, 31) Source(5, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -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-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -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-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -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":"-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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-489):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (490-870):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (871-1304) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-307) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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": "-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", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 307, - "kind": "text" - } - ], - "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": "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": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 4977 -} - 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 deleted file mode 100644 index cbada2c9a613c..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,2594 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -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()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -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"); - } -} - - -//// [/src/second/tsconfig.json] -{ - "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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:22 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:24 AM] Building project '/src/first/tsconfig.json'... - -[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:35 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/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:00:46 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare const secondsecond_part1_ar: number[]; -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare function secondsecond_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 18) Source(13, 10) + SourceIndex(0) -3 >Emitted(5, 42) Source(13, 34) + SourceIndex(0) -4 >Emitted(5, 43) Source(13, 35) + SourceIndex(0) -5 >Emitted(5, 46) Source(13, 38) + SourceIndex(0) -6 >Emitted(5, 49) Source(13, 41) + SourceIndex(0) -7 >Emitted(5, 55) Source(13, 47) + SourceIndex(0) -8 >Emitted(5, 57) Source(13, 49) + SourceIndex(0) -9 >Emitted(5, 65) Source(13, 54) + SourceIndex(0) ---- ->>>declare const secondsecond_part1_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > secondsecond_part1_ar -5 > = [20, 30] -6 > ; -1 >Emitted(6, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(6, 9) Source(14, 1) + SourceIndex(0) -3 >Emitted(6, 15) Source(14, 7) + SourceIndex(0) -4 >Emitted(6, 36) Source(14, 28) + SourceIndex(0) -5 >Emitted(6, 46) Source(14, 39) + SourceIndex(0) -6 >Emitted(6, 47) Source(14, 40) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part1_ar = [20, 30]; -secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var __read = (this && this.__read) || function (o, n) { ->>> var m = typeof Symbol === "function" && o[Symbol.iterator]; ->>> if (!m) return o; ->>> var i = m.call(o), r, ar = [], e; ->>> try { ->>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); ->>> } ->>> catch (error) { e = { error: error }; } ->>> finally { ->>> try { ->>> if (r && !r.done && (m = i["return"])) m.call(i); ->>> } ->>> finally { if (e) throw e.error; } ->>> } ->>> return ar; ->>>}; ->>>var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(26, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(26, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(27, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(27, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(27, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(28, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(28, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(28, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(29, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(29, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(29, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(29, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(29, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(29, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(29, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(29, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(30, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(30, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(31, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(31, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(31, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(32, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(32, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(32, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(32, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(32, 19) Source(11, 2) + SourceIndex(0) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(33, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(13, 10) + SourceIndex(0) -3 >Emitted(33, 34) Source(13, 34) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(13, 35) + SourceIndex(0) -2 >Emitted(34, 16) Source(13, 49) + SourceIndex(0) ---- ->>> for (var _i = 0; _i < arguments.length; _i++) { -1->^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^ -1-> -2 > ...b: number[] -3 > -4 > ...b: number[] -5 > -6 > ...b: number[] -1->Emitted(35, 10) Source(13, 35) + SourceIndex(0) -2 >Emitted(35, 20) Source(13, 49) + SourceIndex(0) -3 >Emitted(35, 22) Source(13, 35) + SourceIndex(0) -4 >Emitted(35, 43) Source(13, 49) + SourceIndex(0) -5 >Emitted(35, 45) Source(13, 35) + SourceIndex(0) -6 >Emitted(35, 49) Source(13, 49) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(13, 35) + SourceIndex(0) -2 >Emitted(36, 31) Source(13, 49) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(13, 53) + SourceIndex(0) -2 >Emitted(38, 2) Source(13, 54) + SourceIndex(0) ---- ->>>var secondsecond_part1_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > secondsecond_part1_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(39, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(39, 5) Source(14, 7) + SourceIndex(0) -3 >Emitted(39, 26) Source(14, 28) + SourceIndex(0) -4 >Emitted(39, 29) Source(14, 31) + SourceIndex(0) -5 >Emitted(39, 30) Source(14, 32) + SourceIndex(0) -6 >Emitted(39, 32) Source(14, 34) + SourceIndex(0) -7 >Emitted(39, 34) Source(14, 36) + SourceIndex(0) -8 >Emitted(39, 36) Source(14, 38) + SourceIndex(0) -9 >Emitted(39, 37) Source(14, 39) + SourceIndex(0) -10>Emitted(39, 38) Source(14, 40) + SourceIndex(0) ---- ->>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >secondsecond_part1Spread -3 > ( -4 > 10 -5 > , ... -6 > secondsecond_part1_ar -7 > ); -1->Emitted(40, 1) Source(15, 1) + SourceIndex(0) -2 >Emitted(40, 25) Source(15, 25) + SourceIndex(0) -3 >Emitted(40, 55) Source(15, 26) + SourceIndex(0) -4 >Emitted(40, 57) Source(15, 28) + SourceIndex(0) -5 >Emitted(40, 67) Source(15, 33) + SourceIndex(0) -6 >Emitted(40, 88) Source(15, 54) + SourceIndex(0) -7 >Emitted(40, 99) Source(15, 56) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(41, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(42, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(43, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(43, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(44, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(44, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(44, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(45, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(45, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(45, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(45, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(45, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(45, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(45, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(45, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(46, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(46, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(47, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(47, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(48, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(48, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -emitHelpers: (0-489):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (490-870):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (871-1423) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part1_ar = [20, 30]; -secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-205) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare const secondsecond_part1_ar: number[]; -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 205, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 4799 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# 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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-709) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3726 -} - - - -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); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:52 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:00:54 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:03 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:04 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var __rest = (this && this.__rest) || function (s, e) { ->>> var t = {}; ->>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) ->>> t[p] = s[p]; ->>> if (s != null && typeof Object.getOwnPropertySymbols === "function") ->>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-490):: typescript:rest -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (491-725) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3799 -} - - - -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); -function forfirstfirst_PART1Rest() { }console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:08 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:10 AM] Building project '/src/first/tsconfig.json'... - -[12:01:18 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:19 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:20 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-159) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-199) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 159, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 199, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2913 -} - 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 deleted file mode 100644 index e39bd08129ee1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,2850 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -"myPrologue" -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -"myPrologue3"; -"myPrologue"; -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:26 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:28 AM] Building project '/src/first/tsconfig.json'... - -[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:39 AM] Building project '/src/second/tsconfig.json'... - -[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:50 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(2, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(2, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(3, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(4, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(4, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(5, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(6, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(6, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(6, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(7, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(7, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(7, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(7, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(7, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(7, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(7, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(7, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(8, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(8, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(9, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(9, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(9, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(9, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(10, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(10, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(10, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(10, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(10, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(12, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(13, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(13, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(14, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(14, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(14, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(15, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(15, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(15, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(15, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(15, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(15, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(15, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(15, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(16, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(17, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(17, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(18, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(18, 6) Source(6, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (28-42):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -text: (43-313) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 3340 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (28-132) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3010 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:56 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:00:58 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:08 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:09 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (28-131) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3004 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:13 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:15 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_part2.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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:25 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (28-147) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3077 -} - - - -Change:: incremental-headers-change-without-dts-changes -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue5" -"myPrologue" -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:29 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:31 AM] Building project '/src/first/tsconfig.json'... - -[12:01:39 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:40 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:41 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] -{"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(7, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > - > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) ---- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(7, 7) + SourceIndex(0) -3 >Emitted(4, 6) Source(7, 8) + SourceIndex(0) -4 >Emitted(4, 9) Source(7, 11) + SourceIndex(0) -5 >Emitted(4, 22) Source(7, 24) + SourceIndex(0) -6 >Emitted(4, 23) Source(7, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(14, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(14, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(14, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(14, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(14, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(14, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(14, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(10, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-28):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (29-42):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (43-162) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3275 -} - 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 deleted file mode 100644 index dac49a89c70f4..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,2145 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -"myPrologue" -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:22 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:24 AM] Building project '/src/first/tsconfig.json'... - -[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:35 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/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:00:46 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(2, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(2, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(3, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(6, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"myPrologue"; -"myPrologue2"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(2, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(2, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(3, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(3, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(5, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(5, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(5, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(6, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(6, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(6, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(6, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(6, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(6, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(6, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(6, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(8, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(8, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(8, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(8, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(9, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(9, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(9, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(9, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(9, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(10, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(11, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(12, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(12, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(13, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(13, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(14, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(14, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(14, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(14, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(14, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(14, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(14, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(14, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(15, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(16, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(16, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(17, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(17, 6) Source(6, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (14-28):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -text: (29-299) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 3191 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-118) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2819 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:52 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:00:54 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:03 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:04 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-134) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2892 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:08 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:10 AM] Building project '/src/first/tsconfig.json'... - -[12:01:18 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/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:20 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue5"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-28):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -text: (29-149) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3086 -} - 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 deleted file mode 100644 index 4147940065965..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js +++ /dev/null @@ -1,1978 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -#!someshebang first first_PART1 -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()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -#!someshebang second second_part1 -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -#!someshebang third third_part1 -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:22 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:24 AM] Building project '/src/first/tsconfig.json'... - -[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:35 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/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:00:46 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -#!someshebang second second_part1 -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(4, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -#!someshebang second second_part1 -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(2, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(8, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (34-304) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (34-127) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 34, - "end": 304, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 34, - "end": 127, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2847 -} - -//// [/src/first/bin/first-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":";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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (32-136) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (32-181) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 32, - "end": 136, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 32, - "end": 181, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2776 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:52 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:00:54 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:04 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:05 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":";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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (32-135) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (32-180) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 32, - "end": 135, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 32, - "end": 180, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2771 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:09 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:11 AM] Building project '/src/first/tsconfig.json'... - -[12:01:19 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:20 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:21 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (32-151) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (32-180) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 32, - "end": 151, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 32, - "end": 180, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2842 -} - 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 deleted file mode 100644 index c57eb342b29cf..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js +++ /dev/null @@ -1,1448 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -#!someshebang second second_part1 -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:19 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:21 AM] Building project '/src/first/tsconfig.json'... - -[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:32 AM] Building project '/src/second/tsconfig.json'... - -[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:43 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -#!someshebang second second_part1 -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 19) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 20) Source(2, 12) + SourceIndex(0) -4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 19) Source(6, 11) + SourceIndex(0) -3 >Emitted(4, 20) Source(6, 12) + SourceIndex(0) -4 >Emitted(4, 21) Source(6, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(5, 2) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -#!someshebang second second_part1 -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(2, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(8, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (34-304) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (34-127) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 34, - "end": 304, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 34, - "end": 127, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2847 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2609 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:49 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:00:51 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:00 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:01 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2682 -} - 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 deleted file mode 100644 index 10f9dc250b74e..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js +++ /dev/null @@ -1,2633 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:21 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:23 AM] Building project '/src/first/tsconfig.json'... - -[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:34 AM] Building project '/src/second/tsconfig.json'... - -[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:45 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"use strict"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(2, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(8, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-284) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2916 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-118) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2819 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:51 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:00:53 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:03 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:04 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-117) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2815 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:08 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:10 AM] Building project '/src/first/tsconfig.json'... - -[12:01:18 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/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:20 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-133) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2887 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:24 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:26 AM] Building project '/src/first/tsconfig.json'... - -[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: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:01:36 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] -{"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":";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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (14-27):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (28-147) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "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" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 3077 -} - 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 deleted file mode 100644 index ed52b8399b2cf..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js +++ /dev/null @@ -1,2004 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:19 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:21 AM] Building project '/src/first/tsconfig.json'... - -[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:32 AM] Building project '/src/second/tsconfig.json'... - -[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:43 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -"use strict"; -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(2, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(8, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (14-284) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2916 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2609 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:49 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:00:51 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_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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:01 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2682 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:05 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:07 AM] Building project '/src/first/tsconfig.json'... - -[12:01:15 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:16 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:17 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":"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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (14-134) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "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" - } - ], - "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", - "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\"}", - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2934 -} - 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 deleted file mode 100644 index 98574056a2eae..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js +++ /dev/null @@ -1,1458 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -namespace ts { - /* @internal */ - /** - * Subset of properties from SourceFile that are used in multiple utility functions - */ - export interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - /* @internal */ - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - - /* @internal */ - export interface RedirectInfo { - /** Source file this redirects to. */ - readonly redirectTarget: SourceFile; - /** - * Source file for the duplicate package. This will not be used by the Program, - * but we need to keep this around so we can watch for changes in underlying. - */ - readonly unredirected: SourceFile; - } - - // Source files are declarations when they are external modules. - export interface SourceFile { - someProp: string; - } -}interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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, - "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:20 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:22 AM] Building project '/src/first/tsconfig.json'... - -[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:33 AM] Building project '/src/second/tsconfig.json'... - -[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:44 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2704 -} - -//// [/src/first/bin/first-output.d.ts] -declare namespace ts { - interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - interface RedirectInfo { - readonly redirectTarget: SourceFile; - readonly unredirected: SourceFile; - } - interface SourceFile { - someProp: string; - } -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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,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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>declare namespace ts { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > -2 >namespace -3 > ts -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 22) Source(1, 14) + SourceIndex(0) ---- ->>> interface SourceFileLike { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^-> -1->{ - > /* @internal */ - > /** - > * Subset of properties from SourceFile that are used in multiple utility functions - > */ - > -2 > export interface -3 > SourceFileLike -1->Emitted(2, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(2, 15) Source(6, 22) + SourceIndex(0) -3 >Emitted(2, 29) Source(6, 36) + SourceIndex(0) ---- ->>> readonly text: string; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^^^^^^^^-> -1-> { - > -2 > readonly -3 > -4 > text -5 > : -6 > string -7 > ; -1->Emitted(3, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(3, 17) Source(7, 17) + SourceIndex(0) -3 >Emitted(3, 18) Source(7, 18) + SourceIndex(0) -4 >Emitted(3, 22) Source(7, 22) + SourceIndex(0) -5 >Emitted(3, 24) Source(7, 24) + SourceIndex(0) -6 >Emitted(3, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(3, 31) Source(7, 31) + SourceIndex(0) ---- ->>> lineMap?: ReadonlyArray; -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^ -8 > ^ -9 > ^ -10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > lineMap -3 > ? -4 > : -5 > ReadonlyArray -6 > < -7 > number -8 > > -9 > ; -1->Emitted(4, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(4, 19) Source(8, 19) + SourceIndex(0) -5 >Emitted(4, 32) Source(8, 32) + SourceIndex(0) -6 >Emitted(4, 33) Source(8, 33) + SourceIndex(0) -7 >Emitted(4, 39) Source(8, 39) + SourceIndex(0) -8 >Emitted(4, 40) Source(8, 40) + SourceIndex(0) -9 >Emitted(4, 41) Source(8, 41) + SourceIndex(0) ---- ->>> getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -5 > ^^^^ -6 > ^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^^ -10> ^^ -11> ^^^^^^ -12> ^^ -13> ^^^^^^^^^^ -14> ^ -15> ^^ -16> ^^^^ -17> ^^^ -18> ^^^^^^ -19> ^ -1-> - > /* @internal */ - > -2 > getPositionOfLineAndCharacter -3 > ? -4 > ( -5 > line -6 > : -7 > number -8 > , -9 > character -10> : -11> number -12> , -13> allowEdits -14> ? -15> : -16> true -17> ): -18> number -19> ; -1->Emitted(5, 9) Source(10, 9) + SourceIndex(0) -2 >Emitted(5, 38) Source(10, 38) + SourceIndex(0) -3 >Emitted(5, 39) Source(10, 39) + SourceIndex(0) -4 >Emitted(5, 40) Source(10, 40) + SourceIndex(0) -5 >Emitted(5, 44) Source(10, 44) + SourceIndex(0) -6 >Emitted(5, 46) Source(10, 46) + SourceIndex(0) -7 >Emitted(5, 52) Source(10, 52) + SourceIndex(0) -8 >Emitted(5, 54) Source(10, 54) + SourceIndex(0) -9 >Emitted(5, 63) Source(10, 63) + SourceIndex(0) -10>Emitted(5, 65) Source(10, 65) + SourceIndex(0) -11>Emitted(5, 71) Source(10, 71) + SourceIndex(0) -12>Emitted(5, 73) Source(10, 73) + SourceIndex(0) -13>Emitted(5, 83) Source(10, 83) + SourceIndex(0) -14>Emitted(5, 84) Source(10, 84) + SourceIndex(0) -15>Emitted(5, 86) Source(10, 86) + SourceIndex(0) -16>Emitted(5, 90) Source(10, 90) + SourceIndex(0) -17>Emitted(5, 93) Source(10, 93) + SourceIndex(0) -18>Emitted(5, 99) Source(10, 99) + SourceIndex(0) -19>Emitted(5, 100) Source(10, 100) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > } -1 >Emitted(6, 6) Source(11, 6) + SourceIndex(0) ---- ->>> interface RedirectInfo { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> - > - > /* @internal */ - > -2 > export interface -3 > RedirectInfo -1->Emitted(7, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(7, 15) Source(14, 22) + SourceIndex(0) -3 >Emitted(7, 27) Source(14, 34) + SourceIndex(0) ---- ->>> readonly redirectTarget: SourceFile; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^ -1-> { - > /** Source file this redirects to. */ - > -2 > readonly -3 > -4 > redirectTarget -5 > : -6 > SourceFile -7 > ; -1->Emitted(8, 9) Source(16, 9) + SourceIndex(0) -2 >Emitted(8, 17) Source(16, 17) + SourceIndex(0) -3 >Emitted(8, 18) Source(16, 18) + SourceIndex(0) -4 >Emitted(8, 32) Source(16, 32) + SourceIndex(0) -5 >Emitted(8, 34) Source(16, 34) + SourceIndex(0) -6 >Emitted(8, 44) Source(16, 44) + SourceIndex(0) -7 >Emitted(8, 45) Source(16, 45) + SourceIndex(0) ---- ->>> readonly unredirected: SourceFile; -1 >^^^^^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^ -5 > ^^ -6 > ^^^^^^^^^^ -7 > ^ -1 > - > /** - > * Source file for the duplicate package. This will not be used by the Program, - > * but we need to keep this around so we can watch for changes in underlying. - > */ - > -2 > readonly -3 > -4 > unredirected -5 > : -6 > SourceFile -7 > ; -1 >Emitted(9, 9) Source(21, 9) + SourceIndex(0) -2 >Emitted(9, 17) Source(21, 17) + SourceIndex(0) -3 >Emitted(9, 18) Source(21, 18) + SourceIndex(0) -4 >Emitted(9, 30) Source(21, 30) + SourceIndex(0) -5 >Emitted(9, 32) Source(21, 32) + SourceIndex(0) -6 >Emitted(9, 42) Source(21, 42) + SourceIndex(0) -7 >Emitted(9, 43) Source(21, 43) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > - > } -1 >Emitted(10, 6) Source(22, 6) + SourceIndex(0) ---- ->>> interface SourceFile { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^ -4 > ^-> -1-> - > - > // Source files are declarations when they are external modules. - > -2 > export interface -3 > SourceFile -1->Emitted(11, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(11, 15) Source(25, 22) + SourceIndex(0) -3 >Emitted(11, 25) Source(25, 32) + SourceIndex(0) ---- ->>> someProp: string; -1->^^^^^^^^ -2 > ^^^^^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -1-> { - > -2 > someProp -3 > : -4 > string -5 > ; -1->Emitted(12, 9) Source(26, 9) + SourceIndex(0) -2 >Emitted(12, 17) Source(26, 17) + SourceIndex(0) -3 >Emitted(12, 19) Source(26, 19) + SourceIndex(0) -4 >Emitted(12, 25) Source(26, 25) + SourceIndex(0) -5 >Emitted(12, 26) Source(26, 26) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > - > } -1 >Emitted(13, 6) Source(27, 6) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(14, 2) Source(28, 2) + SourceIndex(0) ---- ->>>interface TheFirst { -1-> -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1-> -2 >interface -3 > TheFirst -1->Emitted(15, 1) Source(28, 2) + SourceIndex(0) -2 >Emitted(15, 11) Source(28, 12) + SourceIndex(0) -3 >Emitted(15, 19) Source(28, 20) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(16, 5) Source(29, 5) + SourceIndex(0) -2 >Emitted(16, 9) Source(29, 9) + SourceIndex(0) -3 >Emitted(16, 11) Source(29, 11) + SourceIndex(0) -4 >Emitted(16, 14) Source(29, 14) + SourceIndex(0) -5 >Emitted(16, 15) Source(29, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(17, 2) Source(30, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(18, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(18, 9) Source(32, 1) + SourceIndex(0) -3 >Emitted(18, 15) Source(32, 7) + SourceIndex(0) -4 >Emitted(18, 16) Source(32, 8) + SourceIndex(0) -5 >Emitted(18, 33) Source(32, 25) + SourceIndex(0) -6 >Emitted(18, 34) Source(32, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(19, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(19, 11) Source(34, 11) + SourceIndex(0) -3 >Emitted(19, 28) Source(34, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(20, 5) Source(35, 5) + SourceIndex(0) -2 >Emitted(20, 9) Source(35, 9) + SourceIndex(0) -3 >Emitted(20, 11) Source(35, 11) + SourceIndex(0) -4 >Emitted(20, 14) Source(35, 14) + SourceIndex(0) -5 >Emitted(20, 15) Source(35, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(21, 2) Source(36, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(22, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(22, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(22, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(22, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":"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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >namespace ts { - > /* @internal */ - > /** - > * Subset of properties from SourceFile that are used in multiple utility functions - > */ - > export interface SourceFileLike { - > readonly text: string; - > lineMap?: ReadonlyArray; - > /* @internal */ - > getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - > } - > - > /* @internal */ - > export interface RedirectInfo { - > /** Source file this redirects to. */ - > readonly redirectTarget: SourceFile; - > /** - > * Source file for the duplicate package. This will not be used by the Program, - > * but we need to keep this around so we can watch for changes in underlying. - > */ - > readonly unredirected: SourceFile; - > } - > - > // Source files are declarations when they are external modules. - > export interface SourceFile { - > someProp: string; - > } - >}interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(32, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(32, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(32, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(32, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(32, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(38, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(38, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(38, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(38, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(38, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(38, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(38, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(38, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-23) -declare namespace ts { - ----------------------------------------------------------------------- -internal: (23-354) - interface SourceFileLike { - readonly text: string; - lineMap?: ReadonlyArray; - getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number; - } - interface RedirectInfo { - readonly redirectTarget: SourceFile; - readonly unredirected: SourceFile; - } ----------------------------------------------------------------------- -text: (355-565) - interface SourceFile { - someProp: string; - } -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 23, - "kind": "text" - }, - { - "pos": 23, - "end": 354, - "kind": "internal" - }, - { - "pos": 355, - "end": 565, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 4854 -} - 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 deleted file mode 100644 index bbce70cffbbfb..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,1416 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [ - { "path": "../first", "prepend": true } - ] -} - -//// [/src/third/third_part1.ts] -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, - "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:23 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:25 AM] Building project '/src/first/tsconfig.json'... - -[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:36 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:37 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:38 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/**@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2662 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:42 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 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' - -[12:00:44 AM] Building project '/src/first/tsconfig.json'... - -[12:00:52 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:00:53 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:54 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:55 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2733 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:59 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:01:00 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] Building project '/src/first/tsconfig.json'... - -[12:01:09 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:01:10 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:01:11 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:01:12 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2682 -} - 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 deleted file mode 100644 index 0e54ec010d3a0..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,4046 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [] -} - -//// [/src/third/third_part1.ts] -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, - "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:21 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:23 AM] Building project '/src/first/tsconfig.json'... - -[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:34 AM] Building project '/src/second/tsconfig.json'... - -[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:45 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(7, 5) Source(15, 20) + SourceIndex(0) -2 >Emitted(7, 9) Source(15, 24) + SourceIndex(0) -3 >Emitted(7, 11) Source(15, 26) + SourceIndex(0) -4 >Emitted(7, 17) Source(15, 32) + SourceIndex(0) -5 >Emitted(7, 18) Source(15, 33) + SourceIndex(0) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(8, 5) Source(16, 20) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 26) + SourceIndex(0) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^-> -1->() { } - > /**@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /**@internal*/ set c(val: -5 > number -6 > -1->Emitted(9, 5) Source(17, 20) + SourceIndex(0) -2 >Emitted(9, 9) Source(17, 24) + SourceIndex(0) -3 >Emitted(9, 10) Source(17, 25) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 31) + SourceIndex(0) -5 >Emitted(9, 20) Source(18, 37) + SourceIndex(0) -6 >Emitted(9, 21) Source(17, 42) + SourceIndex(0) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /**@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(10, 5) Source(18, 20) + SourceIndex(0) -2 >Emitted(10, 9) Source(18, 24) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 25) + SourceIndex(0) -4 >Emitted(10, 11) Source(18, 26) + SourceIndex(0) -5 >Emitted(10, 16) Source(18, 31) + SourceIndex(0) -6 >Emitted(10, 22) Source(18, 37) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 42) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /**@internal*/ -2 > export class -3 > C -1 >Emitted(13, 5) Source(21, 20) + SourceIndex(0) -2 >Emitted(13, 11) Source(21, 33) + SourceIndex(0) -3 >Emitted(13, 12) Source(21, 34) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(14, 6) Source(21, 38) + SourceIndex(0) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(15, 5) Source(22, 20) + SourceIndex(0) -2 >Emitted(15, 14) Source(22, 36) + SourceIndex(0) -3 >Emitted(15, 17) Source(22, 39) + SourceIndex(0) -4 >Emitted(15, 26) Source(22, 44) + SourceIndex(0) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(16, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 37) + SourceIndex(0) -3 >Emitted(16, 28) Source(23, 50) + SourceIndex(0) -4 >Emitted(16, 29) Source(23, 51) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(17, 9) Source(23, 53) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 66) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(18, 10) Source(23, 70) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(19, 6) Source(23, 72) + SourceIndex(0) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(20, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 37) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 46) + SourceIndex(0) -4 >Emitted(20, 25) Source(24, 47) + SourceIndex(0) -5 >Emitted(20, 34) Source(24, 56) + SourceIndex(0) -6 >Emitted(20, 35) Source(24, 57) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(21, 9) Source(24, 59) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 72) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 81) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(22, 10) Source(24, 84) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(23, 6) Source(24, 86) + SourceIndex(0) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /**@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(24, 5) Source(25, 20) + SourceIndex(0) -2 >Emitted(24, 11) Source(25, 26) + SourceIndex(0) -3 >Emitted(24, 19) Source(25, 34) + SourceIndex(0) -4 >Emitted(24, 29) Source(25, 44) + SourceIndex(0) -5 >Emitted(24, 32) Source(25, 47) + SourceIndex(0) -6 >Emitted(24, 45) Source(25, 60) + SourceIndex(0) -7 >Emitted(24, 46) Source(25, 61) + SourceIndex(0) -8 >Emitted(24, 47) Source(25, 62) + SourceIndex(0) -9 >Emitted(24, 48) Source(25, 63) + SourceIndex(0) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /**@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(25, 5) Source(26, 20) + SourceIndex(0) -2 >Emitted(25, 10) Source(26, 32) + SourceIndex(0) -3 >Emitted(25, 22) Source(26, 44) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 47) + SourceIndex(0) -5 >Emitted(25, 34) Source(26, 56) + SourceIndex(0) -6 >Emitted(25, 35) Source(26, 57) + SourceIndex(0) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /**@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(26, 5) Source(27, 27) + SourceIndex(0) -2 >Emitted(26, 11) Source(27, 33) + SourceIndex(0) -3 >Emitted(26, 24) Source(27, 46) + SourceIndex(0) -4 >Emitted(26, 29) Source(27, 51) + SourceIndex(0) -5 >Emitted(26, 30) Source(27, 52) + SourceIndex(0) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(27, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 32) + SourceIndex(0) -3 >Emitted(27, 22) Source(28, 44) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(28, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 48) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 48) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(29, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 51) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 51) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(30, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 54) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 54) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(31, 6) Source(28, 56) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/**@internal*/ -2 >class -3 > internalC -1->Emitted(33, 1) Source(30, 16) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 22) + SourceIndex(0) -3 >Emitted(33, 24) Source(30, 31) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(34, 2) Source(30, 34) + SourceIndex(0) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(35, 1) Source(31, 16) + SourceIndex(0) -2 >Emitted(35, 18) Source(31, 25) + SourceIndex(0) -3 >Emitted(35, 29) Source(31, 36) + SourceIndex(0) -4 >Emitted(35, 38) Source(31, 41) + SourceIndex(0) ---- ->>>declare namespace internalNamespace { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > -1 >Emitted(36, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(36, 19) Source(32, 26) + SourceIndex(0) -3 >Emitted(36, 36) Source(32, 43) + SourceIndex(0) -4 >Emitted(36, 37) Source(32, 44) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(37, 5) Source(32, 46) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 59) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 68) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(38, 6) Source(32, 71) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(39, 2) Source(32, 73) + SourceIndex(0) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(40, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(40, 19) Source(33, 26) + SourceIndex(0) -3 >Emitted(40, 32) Source(33, 39) + SourceIndex(0) -4 >Emitted(40, 33) Source(33, 40) + SourceIndex(0) -5 >Emitted(40, 42) Source(33, 49) + SourceIndex(0) -6 >Emitted(40, 43) Source(33, 50) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(41, 5) Source(33, 52) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 65) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 74) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(42, 6) Source(33, 77) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(43, 2) Source(33, 79) + SourceIndex(0) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(44, 1) Source(34, 16) + SourceIndex(0) -2 >Emitted(44, 8) Source(34, 23) + SourceIndex(0) -3 >Emitted(44, 22) Source(34, 37) + SourceIndex(0) -4 >Emitted(44, 25) Source(34, 40) + SourceIndex(0) -5 >Emitted(44, 42) Source(34, 57) + SourceIndex(0) -6 >Emitted(44, 43) Source(34, 58) + SourceIndex(0) -7 >Emitted(44, 52) Source(34, 67) + SourceIndex(0) -8 >Emitted(44, 53) Source(34, 68) + SourceIndex(0) ---- ->>>type internalType = internalC; -1 > -2 >^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^-> -1 > - >/**@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(45, 1) Source(35, 16) + SourceIndex(0) -2 >Emitted(45, 6) Source(35, 21) + SourceIndex(0) -3 >Emitted(45, 18) Source(35, 33) + SourceIndex(0) -4 >Emitted(45, 21) Source(35, 36) + SourceIndex(0) -5 >Emitted(45, 30) Source(35, 45) + SourceIndex(0) -6 >Emitted(45, 31) Source(35, 46) + SourceIndex(0) ---- ->>>declare const internalConst = 10; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1-> - >/**@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1->Emitted(46, 1) Source(36, 16) + SourceIndex(0) -2 >Emitted(46, 9) Source(36, 16) + SourceIndex(0) -3 >Emitted(46, 15) Source(36, 22) + SourceIndex(0) -4 >Emitted(46, 28) Source(36, 35) + SourceIndex(0) -5 >Emitted(46, 33) Source(36, 40) + SourceIndex(0) -6 >Emitted(46, 34) Source(36, 41) + SourceIndex(0) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/**@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(47, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(47, 14) Source(37, 21) + SourceIndex(0) -3 >Emitted(47, 26) Source(37, 33) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(48, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 37) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 37) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(49, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 40) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 40) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(50, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 43) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 43) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(52, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(52, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(52, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(53, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> function normalC() { -1->^^^^ -2 > ^-> -1->class normalC { - > /**@internal*/ -1->Emitted(9, 5) Source(14, 20) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(10, 5) Source(14, 36) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(11, 5) Source(16, 20) + SourceIndex(0) -2 >Emitted(11, 29) Source(16, 26) + SourceIndex(0) -3 >Emitted(11, 32) Source(16, 20) + SourceIndex(0) -4 >Emitted(11, 46) Source(16, 31) + SourceIndex(0) -5 >Emitted(11, 47) Source(16, 32) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(12, 5) Source(17, 20) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 24) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 25) + SourceIndex(0) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(13, 14) Source(17, 20) + SourceIndex(0) -2 >Emitted(13, 28) Source(17, 30) + SourceIndex(0) -3 >Emitted(13, 35) Source(17, 37) + SourceIndex(0) -4 >Emitted(13, 37) Source(17, 39) + SourceIndex(0) -5 >Emitted(13, 38) Source(17, 40) + SourceIndex(0) -6 >Emitted(13, 39) Source(17, 41) + SourceIndex(0) -7 >Emitted(13, 40) Source(17, 42) + SourceIndex(0) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(14, 14) Source(18, 20) + SourceIndex(0) -2 >Emitted(14, 24) Source(18, 26) + SourceIndex(0) -3 >Emitted(14, 27) Source(18, 37) + SourceIndex(0) -4 >Emitted(14, 31) Source(18, 41) + SourceIndex(0) -5 >Emitted(14, 32) Source(18, 42) + SourceIndex(0) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(22, 5) Source(21, 20) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 38) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 37) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 38) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 20) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 38) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 33) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 34) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 38) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 38) + SourceIndex(0) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(28, 5) Source(22, 20) + SourceIndex(0) -2 >Emitted(28, 14) Source(22, 36) + SourceIndex(0) -3 >Emitted(28, 17) Source(22, 39) + SourceIndex(0) -4 >Emitted(28, 22) Source(22, 43) + SourceIndex(0) -5 >Emitted(28, 23) Source(22, 44) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 5) Source(22, 36) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 39) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 44) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 44) + SourceIndex(0) ---- ->>> var someNamespace; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1 >Emitted(30, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(30, 9) Source(23, 37) + SourceIndex(0) -3 >Emitted(30, 22) Source(23, 50) + SourceIndex(0) -4 >Emitted(30, 23) Source(23, 72) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(31, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 37) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 50) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 69) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 70) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 53) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 70) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 66) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 67) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 70) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 70) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 71) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 72) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 37) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 50) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 37) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 50) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 37) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 50) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 72) + SourceIndex(0) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(39, 9) Source(24, 37) + SourceIndex(0) -3 >Emitted(39, 18) Source(24, 46) + SourceIndex(0) -4 >Emitted(39, 19) Source(24, 86) + SourceIndex(0) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(40, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 37) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 46) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 47) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 56) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 86) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 47) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 56) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 84) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 83) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 84) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 59) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 84) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 72) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 81) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 84) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 84) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 85) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 86) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 47) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 56) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 47) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 56) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 47) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 56) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 86) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 85) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 86) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 37) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 46) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 37) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 46) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 37) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 46) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 86) + SourceIndex(0) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(51, 5) Source(25, 34) + SourceIndex(0) -2 >Emitted(51, 23) Source(25, 44) + SourceIndex(0) -3 >Emitted(51, 26) Source(25, 47) + SourceIndex(0) -4 >Emitted(51, 39) Source(25, 60) + SourceIndex(0) -5 >Emitted(51, 40) Source(25, 61) + SourceIndex(0) -6 >Emitted(51, 41) Source(25, 62) + SourceIndex(0) -7 >Emitted(51, 42) Source(25, 63) + SourceIndex(0) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(52, 5) Source(27, 33) + SourceIndex(0) -2 >Emitted(52, 26) Source(27, 46) + SourceIndex(0) -3 >Emitted(52, 29) Source(27, 49) + SourceIndex(0) -4 >Emitted(52, 31) Source(27, 51) + SourceIndex(0) -5 >Emitted(52, 32) Source(27, 52) + SourceIndex(0) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(53, 9) Source(28, 32) + SourceIndex(0) -3 >Emitted(53, 21) Source(28, 56) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(54, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 32) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 44) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 48) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 48) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 51) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 51) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 54) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 54) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 55) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 56) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 32) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 44) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 32) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 44) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 32) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 44) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 56) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>var internalC = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >/**@internal*/ -1 >Emitted(60, 1) Source(30, 16) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 34) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 33) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 34) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 16) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 34) + SourceIndex(0) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(65, 1) Source(31, 16) + SourceIndex(0) -2 >Emitted(65, 10) Source(31, 25) + SourceIndex(0) -3 >Emitted(65, 21) Source(31, 36) + SourceIndex(0) -4 >Emitted(65, 26) Source(31, 40) + SourceIndex(0) -5 >Emitted(65, 27) Source(31, 41) + SourceIndex(0) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(66, 5) Source(32, 26) + SourceIndex(0) -3 >Emitted(66, 22) Source(32, 43) + SourceIndex(0) -4 >Emitted(66, 23) Source(32, 73) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(67, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 26) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 43) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 71) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 70) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 71) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 46) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 71) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 59) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 68) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 71) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 71) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 72) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 73) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 26) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 43) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 26) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 43) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 73) + SourceIndex(0) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(75, 5) Source(33, 26) + SourceIndex(0) -3 >Emitted(75, 18) Source(33, 39) + SourceIndex(0) -4 >Emitted(75, 19) Source(33, 79) + SourceIndex(0) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(76, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 26) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 39) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 40) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 49) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 79) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 40) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 49) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 77) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 76) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 77) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 52) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 77) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 65) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 74) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 77) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 77) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 78) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 79) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 40) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 49) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 40) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 49) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 40) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 49) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 79) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 78) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 79) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 26) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 39) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 26) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 39) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 79) + SourceIndex(0) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(87, 1) Source(34, 16) + SourceIndex(0) -2 >Emitted(87, 5) Source(34, 23) + SourceIndex(0) -3 >Emitted(87, 19) Source(34, 37) + SourceIndex(0) -4 >Emitted(87, 22) Source(34, 40) + SourceIndex(0) -5 >Emitted(87, 39) Source(34, 57) + SourceIndex(0) -6 >Emitted(87, 40) Source(34, 58) + SourceIndex(0) -7 >Emitted(87, 49) Source(34, 67) + SourceIndex(0) -8 >Emitted(87, 50) Source(34, 68) + SourceIndex(0) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(88, 1) Source(36, 16) + SourceIndex(0) -2 >Emitted(88, 5) Source(36, 22) + SourceIndex(0) -3 >Emitted(88, 18) Source(36, 35) + SourceIndex(0) -4 >Emitted(88, 21) Source(36, 38) + SourceIndex(0) -5 >Emitted(88, 23) Source(36, 40) + SourceIndex(0) -6 >Emitted(88, 24) Source(36, 41) + SourceIndex(0) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(89, 5) Source(37, 21) + SourceIndex(0) -3 >Emitted(89, 17) Source(37, 45) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(90, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 21) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 33) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 37) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 37) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(92, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 40) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 40) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > c -3 > -1 >Emitted(93, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 43) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 43) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 44) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 45) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 21) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 33) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 21) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 33) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-2951) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-72) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (72-173) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (174-204) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (204-578) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (579-581) -} - ----------------------------------------------------------------------- -internal: (581-968) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (969-1014) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 2951, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "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" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 11232 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/**@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2662 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:51 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:00:53 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:02 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:03 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2733 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:07 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:01:08 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] Building project '/src/first/tsconfig.json'... - -[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:18 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:19 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2682 -} - 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 deleted file mode 100644 index b6e49a4b715f6..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,959 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [ - { "path": "../first", "prepend": true } - ] -} - -//// [/src/third/third_part1.ts] -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, - "declaration": 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:26 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:28 AM] Building project '/src/first/tsconfig.json'... - -[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:39 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:40 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:41 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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,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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-52) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (53-164) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 52, - "kind": "internal" - }, - { - "pos": 53, - "end": 164, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2701 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:45 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:47 AM] Building project '/src/first/tsconfig.json'... - -[12:00:55 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:00:56 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:57 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:58 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-52) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (53-164) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 52, - "kind": "internal" - }, - { - "pos": 53, - "end": 164, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2772 -} - 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 deleted file mode 100644 index 2f948e4bcceb4..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ /dev/null @@ -1,3807 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /**@internal*/ constructor() { } - /**@internal*/ prop: string; - /**@internal*/ method() { } - /**@internal*/ get c() { return 10; } - /**@internal*/ set c(val: number) { } -} -namespace normalN { - /**@internal*/ export class C { } - /**@internal*/ export function foo() {} - /**@internal*/ export namespace someNamespace { export class C {} } - /**@internal*/ export namespace someOther.something { export class someClass {} } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ export type internalType = internalC; - /**@internal*/ export const internalConst = 10; - /**@internal*/ export enum internalEnum { a, b, c } -} -/**@internal*/ class internalC {} -/**@internal*/ function internalfoo() {} -/**@internal*/ namespace internalNamespace { export class someClass {} } -/**@internal*/ namespace internalOther.something { export class someClass {} } -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ const internalConst = 10; -/**@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [] -} - -//// [/src/third/third_part1.ts] -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, - "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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:24 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:26 AM] Building project '/src/first/tsconfig.json'... - -[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:37 AM] Building project '/src/second/tsconfig.json'... - -[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:48 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ get c(): number; - /**@internal*/ set c(val: number); -} -declare namespace normalN { - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^-> -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(6, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(6, 19) Source(14, 19) + SourceIndex(0) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(7, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(7, 19) Source(15, 19) + SourceIndex(0) -3 >Emitted(7, 20) Source(15, 20) + SourceIndex(0) -4 >Emitted(7, 24) Source(15, 24) + SourceIndex(0) -5 >Emitted(7, 26) Source(15, 26) + SourceIndex(0) -6 >Emitted(7, 32) Source(15, 32) + SourceIndex(0) -7 >Emitted(7, 33) Source(15, 33) + SourceIndex(0) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(8, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(8, 19) Source(16, 19) + SourceIndex(0) -3 >Emitted(8, 20) Source(16, 20) + SourceIndex(0) -4 >Emitted(8, 26) Source(16, 26) + SourceIndex(0) ---- ->>> /**@internal*/ get c(): number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^ -6 > ^^^^ -7 > ^^^^^^ -8 > ^ -9 > ^^^-> -1->() { } - > -2 > /**@internal*/ -3 > -4 > get -5 > c -6 > () { return 10; } - > /**@internal*/ set c(val: -7 > number -8 > -1->Emitted(9, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(9, 19) Source(17, 19) + SourceIndex(0) -3 >Emitted(9, 20) Source(17, 20) + SourceIndex(0) -4 >Emitted(9, 24) Source(17, 24) + SourceIndex(0) -5 >Emitted(9, 25) Source(17, 25) + SourceIndex(0) -6 >Emitted(9, 29) Source(18, 31) + SourceIndex(0) -7 >Emitted(9, 35) Source(18, 37) + SourceIndex(0) -8 >Emitted(9, 36) Source(17, 42) + SourceIndex(0) ---- ->>> /**@internal*/ set c(val: number); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^ -6 > ^ -7 > ^^^^^ -8 > ^^^^^^ -9 > ^^ -1-> - > -2 > /**@internal*/ -3 > -4 > set -5 > c -6 > ( -7 > val: -8 > number -9 > ) { } -1->Emitted(10, 5) Source(18, 5) + SourceIndex(0) -2 >Emitted(10, 19) Source(18, 19) + SourceIndex(0) -3 >Emitted(10, 20) Source(18, 20) + SourceIndex(0) -4 >Emitted(10, 24) Source(18, 24) + SourceIndex(0) -5 >Emitted(10, 25) Source(18, 25) + SourceIndex(0) -6 >Emitted(10, 26) Source(18, 26) + SourceIndex(0) -7 >Emitted(10, 31) Source(18, 31) + SourceIndex(0) -8 >Emitted(10, 37) Source(18, 37) + SourceIndex(0) -9 >Emitted(10, 39) Source(18, 42) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^-> -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(13, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(13, 19) Source(21, 19) + SourceIndex(0) -3 >Emitted(13, 20) Source(21, 20) + SourceIndex(0) -4 >Emitted(13, 26) Source(21, 33) + SourceIndex(0) -5 >Emitted(13, 27) Source(21, 34) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(14, 6) Source(21, 38) + SourceIndex(0) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(15, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(15, 19) Source(22, 19) + SourceIndex(0) -3 >Emitted(15, 20) Source(22, 20) + SourceIndex(0) -4 >Emitted(15, 29) Source(22, 36) + SourceIndex(0) -5 >Emitted(15, 32) Source(22, 39) + SourceIndex(0) -6 >Emitted(15, 41) Source(22, 44) + SourceIndex(0) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(16, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(16, 19) Source(23, 19) + SourceIndex(0) -3 >Emitted(16, 20) Source(23, 20) + SourceIndex(0) -4 >Emitted(16, 30) Source(23, 37) + SourceIndex(0) -5 >Emitted(16, 43) Source(23, 50) + SourceIndex(0) -6 >Emitted(16, 44) Source(23, 51) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(17, 9) Source(23, 53) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 66) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(18, 10) Source(23, 70) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(19, 6) Source(23, 72) + SourceIndex(0) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(20, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(20, 19) Source(24, 19) + SourceIndex(0) -3 >Emitted(20, 20) Source(24, 20) + SourceIndex(0) -4 >Emitted(20, 30) Source(24, 37) + SourceIndex(0) -5 >Emitted(20, 39) Source(24, 46) + SourceIndex(0) -6 >Emitted(20, 40) Source(24, 47) + SourceIndex(0) -7 >Emitted(20, 49) Source(24, 56) + SourceIndex(0) -8 >Emitted(20, 50) Source(24, 57) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(21, 9) Source(24, 59) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 72) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 81) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(22, 10) Source(24, 84) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(23, 6) Source(24, 86) + SourceIndex(0) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(24, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(24, 19) Source(25, 19) + SourceIndex(0) -3 >Emitted(24, 20) Source(25, 20) + SourceIndex(0) -4 >Emitted(24, 26) Source(25, 26) + SourceIndex(0) -5 >Emitted(24, 34) Source(25, 34) + SourceIndex(0) -6 >Emitted(24, 44) Source(25, 44) + SourceIndex(0) -7 >Emitted(24, 47) Source(25, 47) + SourceIndex(0) -8 >Emitted(24, 60) Source(25, 60) + SourceIndex(0) -9 >Emitted(24, 61) Source(25, 61) + SourceIndex(0) -10>Emitted(24, 62) Source(25, 62) + SourceIndex(0) -11>Emitted(24, 63) Source(25, 63) + SourceIndex(0) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(25, 5) Source(26, 5) + SourceIndex(0) -2 >Emitted(25, 19) Source(26, 19) + SourceIndex(0) -3 >Emitted(25, 20) Source(26, 20) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 32) + SourceIndex(0) -5 >Emitted(25, 37) Source(26, 44) + SourceIndex(0) -6 >Emitted(25, 40) Source(26, 47) + SourceIndex(0) -7 >Emitted(25, 49) Source(26, 56) + SourceIndex(0) -8 >Emitted(25, 50) Source(26, 57) + SourceIndex(0) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(26, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(26, 19) Source(27, 19) + SourceIndex(0) -3 >Emitted(26, 20) Source(27, 27) + SourceIndex(0) -4 >Emitted(26, 26) Source(27, 33) + SourceIndex(0) -5 >Emitted(26, 39) Source(27, 46) + SourceIndex(0) -6 >Emitted(26, 44) Source(27, 51) + SourceIndex(0) -7 >Emitted(26, 45) Source(27, 52) + SourceIndex(0) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(27, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(27, 19) Source(28, 19) + SourceIndex(0) -3 >Emitted(27, 20) Source(28, 20) + SourceIndex(0) -4 >Emitted(27, 25) Source(28, 32) + SourceIndex(0) -5 >Emitted(27, 37) Source(28, 44) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(28, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 48) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 48) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(29, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 51) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 51) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(30, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 54) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 54) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(31, 6) Source(28, 56) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(33, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 15) + SourceIndex(0) -3 >Emitted(33, 16) Source(30, 16) + SourceIndex(0) -4 >Emitted(33, 30) Source(30, 22) + SourceIndex(0) -5 >Emitted(33, 39) Source(30, 31) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(34, 2) Source(30, 34) + SourceIndex(0) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(35, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(35, 15) Source(31, 15) + SourceIndex(0) -3 >Emitted(35, 16) Source(31, 16) + SourceIndex(0) -4 >Emitted(35, 33) Source(31, 25) + SourceIndex(0) -5 >Emitted(35, 44) Source(31, 36) + SourceIndex(0) -6 >Emitted(35, 53) Source(31, 41) + SourceIndex(0) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1 >Emitted(36, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(36, 15) Source(32, 15) + SourceIndex(0) -3 >Emitted(36, 16) Source(32, 16) + SourceIndex(0) -4 >Emitted(36, 34) Source(32, 26) + SourceIndex(0) -5 >Emitted(36, 51) Source(32, 43) + SourceIndex(0) -6 >Emitted(36, 52) Source(32, 44) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(37, 5) Source(32, 46) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 59) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 68) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(38, 6) Source(32, 71) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(39, 2) Source(32, 73) + SourceIndex(0) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(40, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(40, 15) Source(33, 15) + SourceIndex(0) -3 >Emitted(40, 16) Source(33, 16) + SourceIndex(0) -4 >Emitted(40, 34) Source(33, 26) + SourceIndex(0) -5 >Emitted(40, 47) Source(33, 39) + SourceIndex(0) -6 >Emitted(40, 48) Source(33, 40) + SourceIndex(0) -7 >Emitted(40, 57) Source(33, 49) + SourceIndex(0) -8 >Emitted(40, 58) Source(33, 50) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(41, 5) Source(33, 52) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 65) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 74) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(42, 6) Source(33, 77) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(43, 2) Source(33, 79) + SourceIndex(0) ---- ->>>/**@internal*/ import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(44, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(44, 15) Source(34, 15) + SourceIndex(0) -3 >Emitted(44, 16) Source(34, 16) + SourceIndex(0) -4 >Emitted(44, 23) Source(34, 23) + SourceIndex(0) -5 >Emitted(44, 37) Source(34, 37) + SourceIndex(0) -6 >Emitted(44, 40) Source(34, 40) + SourceIndex(0) -7 >Emitted(44, 57) Source(34, 57) + SourceIndex(0) -8 >Emitted(44, 58) Source(34, 58) + SourceIndex(0) -9 >Emitted(44, 67) Source(34, 67) + SourceIndex(0) -10>Emitted(44, 68) Source(34, 68) + SourceIndex(0) ---- ->>>/**@internal*/ type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -9 > ^^^-> -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(45, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(35, 15) + SourceIndex(0) -3 >Emitted(45, 16) Source(35, 16) + SourceIndex(0) -4 >Emitted(45, 21) Source(35, 21) + SourceIndex(0) -5 >Emitted(45, 33) Source(35, 33) + SourceIndex(0) -6 >Emitted(45, 36) Source(35, 36) + SourceIndex(0) -7 >Emitted(45, 45) Source(35, 45) + SourceIndex(0) -8 >Emitted(45, 46) Source(35, 46) + SourceIndex(0) ---- ->>>/**@internal*/ declare const internalConst = 10; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1->Emitted(46, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(46, 15) Source(36, 15) + SourceIndex(0) -3 >Emitted(46, 16) Source(36, 16) + SourceIndex(0) -4 >Emitted(46, 24) Source(36, 16) + SourceIndex(0) -5 >Emitted(46, 30) Source(36, 22) + SourceIndex(0) -6 >Emitted(46, 43) Source(36, 35) + SourceIndex(0) -7 >Emitted(46, 48) Source(36, 40) + SourceIndex(0) -8 >Emitted(46, 49) Source(36, 41) + SourceIndex(0) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(47, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(47, 15) Source(37, 15) + SourceIndex(0) -3 >Emitted(47, 16) Source(37, 16) + SourceIndex(0) -4 >Emitted(47, 29) Source(37, 21) + SourceIndex(0) -5 >Emitted(47, 41) Source(37, 33) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(48, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 37) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 37) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(49, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 40) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 40) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(50, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 43) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 43) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(52, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(52, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(52, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(53, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(9, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(9, 19) Source(14, 19) + SourceIndex(0) -3 >Emitted(9, 20) Source(14, 20) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(10, 5) Source(14, 36) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 37) + SourceIndex(0) ---- ->>> /**@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /**@internal*/ prop: string; - > -2 > /**@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(11, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(11, 19) Source(16, 19) + SourceIndex(0) -3 >Emitted(11, 20) Source(16, 20) + SourceIndex(0) -4 >Emitted(11, 44) Source(16, 26) + SourceIndex(0) -5 >Emitted(11, 47) Source(16, 20) + SourceIndex(0) -6 >Emitted(11, 61) Source(16, 31) + SourceIndex(0) -7 >Emitted(11, 62) Source(16, 32) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(12, 5) Source(17, 20) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 24) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 25) + SourceIndex(0) ---- ->>> /**@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /**@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(13, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 23) Source(17, 19) + SourceIndex(0) -3 >Emitted(13, 29) Source(17, 20) + SourceIndex(0) -4 >Emitted(13, 43) Source(17, 30) + SourceIndex(0) -5 >Emitted(13, 50) Source(17, 37) + SourceIndex(0) -6 >Emitted(13, 52) Source(17, 39) + SourceIndex(0) -7 >Emitted(13, 53) Source(17, 40) + SourceIndex(0) -8 >Emitted(13, 54) Source(17, 41) + SourceIndex(0) -9 >Emitted(13, 55) Source(17, 42) + SourceIndex(0) ---- ->>> /**@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(14, 9) Source(18, 5) + SourceIndex(0) -2 >Emitted(14, 23) Source(18, 19) + SourceIndex(0) -3 >Emitted(14, 29) Source(18, 20) + SourceIndex(0) -4 >Emitted(14, 39) Source(18, 26) + SourceIndex(0) -5 >Emitted(14, 42) Source(18, 37) + SourceIndex(0) -6 >Emitted(14, 46) Source(18, 41) + SourceIndex(0) -7 >Emitted(14, 47) Source(18, 42) + SourceIndex(0) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 42) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(22, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) -3 >Emitted(22, 20) Source(21, 20) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 9) Source(21, 20) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 38) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 37) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 38) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 37) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 38) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 20) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 38) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 33) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 34) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 38) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 38) + SourceIndex(0) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(28, 19) Source(22, 19) + SourceIndex(0) -3 >Emitted(28, 20) Source(22, 20) + SourceIndex(0) -4 >Emitted(28, 29) Source(22, 36) + SourceIndex(0) -5 >Emitted(28, 32) Source(22, 39) + SourceIndex(0) -6 >Emitted(28, 37) Source(22, 43) + SourceIndex(0) -7 >Emitted(28, 38) Source(22, 44) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 5) Source(22, 36) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 39) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 44) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 44) + SourceIndex(0) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(30, 19) Source(23, 19) + SourceIndex(0) -3 >Emitted(30, 20) Source(23, 20) + SourceIndex(0) -4 >Emitted(30, 24) Source(23, 37) + SourceIndex(0) -5 >Emitted(30, 37) Source(23, 50) + SourceIndex(0) -6 >Emitted(30, 38) Source(23, 72) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 5) Source(23, 20) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 37) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 50) + SourceIndex(0) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 53) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 13) Source(23, 53) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 70) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 69) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 69) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 70) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 53) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 70) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 66) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 67) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 70) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 70) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 71) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 72) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 37) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 50) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 37) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 50) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 37) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 50) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 72) + SourceIndex(0) ---- ->>> /**@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(39, 19) Source(24, 19) + SourceIndex(0) -3 >Emitted(39, 20) Source(24, 20) + SourceIndex(0) -4 >Emitted(39, 24) Source(24, 37) + SourceIndex(0) -5 >Emitted(39, 33) Source(24, 46) + SourceIndex(0) -6 >Emitted(39, 34) Source(24, 86) + SourceIndex(0) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 5) Source(24, 20) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 37) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 46) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 47) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 56) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 86) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 47) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 47) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 56) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 59) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 17) Source(24, 59) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 84) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 83) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 84) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 83) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 84) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 59) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 84) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 72) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 81) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 84) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 84) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 85) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 86) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 47) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 56) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 47) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 56) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 47) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 56) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 86) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 85) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 86) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 37) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 46) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 37) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 46) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 37) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 46) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 86) + SourceIndex(0) ---- ->>> /**@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /**@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(51, 19) Source(25, 19) + SourceIndex(0) -3 >Emitted(51, 20) Source(25, 34) + SourceIndex(0) -4 >Emitted(51, 38) Source(25, 44) + SourceIndex(0) -5 >Emitted(51, 41) Source(25, 47) + SourceIndex(0) -6 >Emitted(51, 54) Source(25, 60) + SourceIndex(0) -7 >Emitted(51, 55) Source(25, 61) + SourceIndex(0) -8 >Emitted(51, 56) Source(25, 62) + SourceIndex(0) -9 >Emitted(51, 57) Source(25, 63) + SourceIndex(0) ---- ->>> /**@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > -2 > /**@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(52, 19) Source(27, 19) + SourceIndex(0) -3 >Emitted(52, 20) Source(27, 33) + SourceIndex(0) -4 >Emitted(52, 41) Source(27, 46) + SourceIndex(0) -5 >Emitted(52, 44) Source(27, 49) + SourceIndex(0) -6 >Emitted(52, 46) Source(27, 51) + SourceIndex(0) -7 >Emitted(52, 47) Source(27, 52) + SourceIndex(0) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(53, 19) Source(28, 19) + SourceIndex(0) -3 >Emitted(53, 20) Source(28, 20) + SourceIndex(0) -4 >Emitted(53, 24) Source(28, 32) + SourceIndex(0) -5 >Emitted(53, 36) Source(28, 56) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 5) Source(28, 20) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 32) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 44) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 47) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 48) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 48) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 9) Source(28, 50) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 51) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 51) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 9) Source(28, 53) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 54) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 54) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 55) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 56) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 32) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 44) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 32) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 44) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 32) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 44) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 56) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@internal*/ export class C { } - > /**@internal*/ export function foo() {} - > /**@internal*/ export namespace someNamespace { export class C {} } - > /**@internal*/ export namespace someOther.something { export class someClass {} } - > /**@internal*/ export import someImport = someNamespace.C; - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const internalConst = 10; - > /**@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(60, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(60, 15) Source(30, 15) + SourceIndex(0) -3 >Emitted(60, 16) Source(30, 16) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(61, 5) Source(30, 16) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 34) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 33) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 34) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 33) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 34) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 16) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 34) + SourceIndex(0) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(65, 15) Source(31, 15) + SourceIndex(0) -3 >Emitted(65, 16) Source(31, 16) + SourceIndex(0) -4 >Emitted(65, 25) Source(31, 25) + SourceIndex(0) -5 >Emitted(65, 36) Source(31, 36) + SourceIndex(0) -6 >Emitted(65, 41) Source(31, 40) + SourceIndex(0) -7 >Emitted(65, 42) Source(31, 41) + SourceIndex(0) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(66, 15) Source(32, 15) + SourceIndex(0) -3 >Emitted(66, 16) Source(32, 16) + SourceIndex(0) -4 >Emitted(66, 20) Source(32, 26) + SourceIndex(0) -5 >Emitted(66, 37) Source(32, 43) + SourceIndex(0) -6 >Emitted(66, 38) Source(32, 73) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(67, 1) Source(32, 16) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 26) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 43) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 46) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(69, 9) Source(32, 46) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 71) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 70) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 71) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 70) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 71) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 46) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 71) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 59) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 68) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 71) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 71) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 72) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 73) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 26) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 43) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 26) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 43) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 73) + SourceIndex(0) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(75, 15) Source(33, 15) + SourceIndex(0) -3 >Emitted(75, 16) Source(33, 16) + SourceIndex(0) -4 >Emitted(75, 20) Source(33, 26) + SourceIndex(0) -5 >Emitted(75, 33) Source(33, 39) + SourceIndex(0) -6 >Emitted(75, 34) Source(33, 79) + SourceIndex(0) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(76, 1) Source(33, 16) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 26) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 39) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 40) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 49) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 79) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 40) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 40) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 49) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 52) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(80, 13) Source(33, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 77) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 76) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 77) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 76) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 77) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 52) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 77) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 65) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 74) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 77) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 77) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 78) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 79) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 40) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 49) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 40) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 49) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 40) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 49) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 79) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 78) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 79) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 26) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 39) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 26) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 39) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 79) + SourceIndex(0) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(87, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(87, 15) Source(34, 15) + SourceIndex(0) -3 >Emitted(87, 16) Source(34, 16) + SourceIndex(0) -4 >Emitted(87, 20) Source(34, 23) + SourceIndex(0) -5 >Emitted(87, 34) Source(34, 37) + SourceIndex(0) -6 >Emitted(87, 37) Source(34, 40) + SourceIndex(0) -7 >Emitted(87, 54) Source(34, 57) + SourceIndex(0) -8 >Emitted(87, 55) Source(34, 58) + SourceIndex(0) -9 >Emitted(87, 64) Source(34, 67) + SourceIndex(0) -10>Emitted(87, 65) Source(34, 68) + SourceIndex(0) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(88, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(88, 15) Source(36, 15) + SourceIndex(0) -3 >Emitted(88, 16) Source(36, 16) + SourceIndex(0) -4 >Emitted(88, 20) Source(36, 22) + SourceIndex(0) -5 >Emitted(88, 33) Source(36, 35) + SourceIndex(0) -6 >Emitted(88, 36) Source(36, 38) + SourceIndex(0) -7 >Emitted(88, 38) Source(36, 40) + SourceIndex(0) -8 >Emitted(88, 39) Source(36, 41) + SourceIndex(0) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(89, 15) Source(37, 15) + SourceIndex(0) -3 >Emitted(89, 16) Source(37, 16) + SourceIndex(0) -4 >Emitted(89, 20) Source(37, 21) + SourceIndex(0) -5 >Emitted(89, 32) Source(37, 45) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(90, 1) Source(37, 16) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 21) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 33) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 36) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 37) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 37) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(92, 5) Source(37, 39) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 40) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 40) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > c -3 > -1 >Emitted(93, 5) Source(37, 42) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 43) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 43) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 44) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 45) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 21) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 33) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 21) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 33) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 45) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-3333) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /**@internal*/ function normalC() { - } - /**@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /**@internal*/ get: function () { return 10; }, - /**@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /**@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /**@internal*/ function foo() { } - normalN.foo = foo; - /**@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /**@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /**@internal*/ normalN.someImport = someNamespace.C; - /**@internal*/ normalN.internalConst = 10; - /**@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/**@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-72) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (72-248) - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ get c(): number; - /**@internal*/ set c(val: number); ----------------------------------------------------------------------- -text: (249-279) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (279-773) - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (774-776) -} - ----------------------------------------------------------------------- -internal: (776-1283) -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1284-1329) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3333, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "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" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 12639 -} - -//// [/src/first/bin/first-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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,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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-52) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (53-164) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 52, - "kind": "internal" - }, - { - "pos": 53, - "end": 164, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2701 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:54 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:00:56 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:05 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:06 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-52) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (53-164) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 52, - "kind": "internal" - }, - { - "pos": 53, - "end": 164, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2772 -} - 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 deleted file mode 100644 index 24a443fa3b188..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js +++ /dev/null @@ -1,1648 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -enum TokenFlags { - None = 0, - /* @internal */ - PrecedingLineBreak = 1 << 0, - /* @internal */ - PrecedingJSDocComment = 1 << 1, - /* @internal */ - Unterminated = 1 << 2, - /* @internal */ - ExtendedUnicodeEscape = 1 << 3, - Scientific = 1 << 4, - Octal = 1 << 5, - HexSpecifier = 1 << 6, - BinarySpecifier = 1 << 7, - OctalSpecifier = 1 << 8, - /* @internal */ - ContainsSeparator = 1 << 9, - /* @internal */ - BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - /* @internal */ - NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -} -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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, - "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:20 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:22 AM] Building project '/src/first/tsconfig.json'... - -[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:33 AM] Building project '/src/second/tsconfig.json'... - -[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:44 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2704 -} - -//// [/src/first/bin/first-output.d.ts] -declare enum TokenFlags { - None = 0, - PrecedingLineBreak = 1, - PrecedingJSDocComment = 2, - Unterminated = 4, - ExtendedUnicodeEscape = 8, - Scientific = 16, - Octal = 32, - HexSpecifier = 64, - BinarySpecifier = 128, - OctalSpecifier = 256, - ContainsSeparator = 512, - BinaryOrOctalSpecifier = 384, - NumericLiteralFlags = 1008 -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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,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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>declare enum TokenFlags { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^ -1 > -2 >enum -3 > TokenFlags -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) -3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) ---- ->>> None = 0, -1 >^^^^ -2 > ^^^^ -3 > ^^^^ -4 > ^^^^^^^^^^^^^^^-> -1 > { - > -2 > None -3 > = 0 -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) ---- ->>> PrecedingLineBreak = 1, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^^^^-> -1->, - > /* @internal */ - > -2 > PrecedingLineBreak -3 > = 1 << 0 -1->Emitted(3, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(3, 23) Source(4, 23) + SourceIndex(0) -3 >Emitted(3, 27) Source(4, 32) + SourceIndex(0) ---- ->>> PrecedingJSDocComment = 2, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^ -1->, - > /* @internal */ - > -2 > PrecedingJSDocComment -3 > = 1 << 1 -1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(4, 26) Source(6, 26) + SourceIndex(0) -3 >Emitted(4, 30) Source(6, 35) + SourceIndex(0) ---- ->>> Unterminated = 4, -1 >^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^^^ -4 > ^^^^^^^^^^-> -1 >, - > /* @internal */ - > -2 > Unterminated -3 > = 1 << 2 -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) -3 >Emitted(5, 21) Source(8, 26) + SourceIndex(0) ---- ->>> ExtendedUnicodeEscape = 8, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^ -1->, - > /* @internal */ - > -2 > ExtendedUnicodeEscape -3 > = 1 << 3 -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 26) Source(10, 26) + SourceIndex(0) -3 >Emitted(6, 30) Source(10, 35) + SourceIndex(0) ---- ->>> Scientific = 16, -1 >^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^ -1 >, - > -2 > Scientific -3 > = 1 << 4 -1 >Emitted(7, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(7, 15) Source(11, 15) + SourceIndex(0) -3 >Emitted(7, 20) Source(11, 24) + SourceIndex(0) ---- ->>> Octal = 32, -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^ -4 > ^^^^^^^^-> -1 >, - > -2 > Octal -3 > = 1 << 5 -1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(8, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 15) Source(12, 19) + SourceIndex(0) ---- ->>> HexSpecifier = 64, -1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^^^^ -4 > ^^^^^-> -1->, - > -2 > HexSpecifier -3 > = 1 << 6 -1->Emitted(9, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(9, 17) Source(13, 17) + SourceIndex(0) -3 >Emitted(9, 22) Source(13, 26) + SourceIndex(0) ---- ->>> BinarySpecifier = 128, -1->^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^^^ -1->, - > -2 > BinarySpecifier -3 > = 1 << 7 -1->Emitted(10, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(10, 20) Source(14, 20) + SourceIndex(0) -3 >Emitted(10, 26) Source(14, 29) + SourceIndex(0) ---- ->>> OctalSpecifier = 256, -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^-> -1 >, - > -2 > OctalSpecifier -3 > = 1 << 8 -1 >Emitted(11, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(11, 19) Source(15, 19) + SourceIndex(0) -3 >Emitted(11, 25) Source(15, 28) + SourceIndex(0) ---- ->>> ContainsSeparator = 512, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^-> -1->, - > /* @internal */ - > -2 > ContainsSeparator -3 > = 1 << 9 -1->Emitted(12, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(12, 22) Source(17, 22) + SourceIndex(0) -3 >Emitted(12, 28) Source(17, 31) + SourceIndex(0) ---- ->>> BinaryOrOctalSpecifier = 384, -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^ -1->, - > /* @internal */ - > -2 > BinaryOrOctalSpecifier -3 > = BinarySpecifier | OctalSpecifier -1->Emitted(13, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(13, 27) Source(19, 27) + SourceIndex(0) -3 >Emitted(13, 33) Source(19, 62) + SourceIndex(0) ---- ->>> NumericLiteralFlags = 1008 -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1 >, - > /* @internal */ - > -2 > NumericLiteralFlags -3 > = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -1 >Emitted(14, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(14, 24) Source(21, 24) + SourceIndex(0) -3 >Emitted(14, 31) Source(21, 105) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(15, 2) Source(22, 2) + SourceIndex(0) ---- ->>>interface TheFirst { -1-> -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1-> - > -2 >interface -3 > TheFirst -1->Emitted(16, 1) Source(23, 1) + SourceIndex(0) -2 >Emitted(16, 11) Source(23, 11) + SourceIndex(0) -3 >Emitted(16, 19) Source(23, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(17, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(17, 9) Source(24, 9) + SourceIndex(0) -3 >Emitted(17, 11) Source(24, 11) + SourceIndex(0) -4 >Emitted(17, 14) Source(24, 14) + SourceIndex(0) -5 >Emitted(17, 15) Source(24, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(18, 2) Source(25, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(19, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(19, 9) Source(27, 1) + SourceIndex(0) -3 >Emitted(19, 15) Source(27, 7) + SourceIndex(0) -4 >Emitted(19, 16) Source(27, 8) + SourceIndex(0) -5 >Emitted(19, 33) Source(27, 25) + SourceIndex(0) -6 >Emitted(19, 34) Source(27, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(20, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(20, 11) Source(29, 11) + SourceIndex(0) -3 >Emitted(20, 28) Source(29, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(21, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(21, 9) Source(30, 9) + SourceIndex(0) -3 >Emitted(21, 11) Source(30, 11) + SourceIndex(0) -4 >Emitted(21, 14) Source(30, 14) + SourceIndex(0) -5 >Emitted(21, 15) Source(30, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(22, 2) Source(31, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(23, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(23, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(23, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(23, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var TokenFlags; -(function (TokenFlags) { - TokenFlags[TokenFlags["None"] = 0] = "None"; - TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; - TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; - TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; - TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; - TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; - TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; - TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; - TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; - TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; - TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; - TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; - TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -})(TokenFlags || (TokenFlags = {})); -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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":"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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var TokenFlags; -1 > -2 >^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^-> -1 > -2 >enum -3 > TokenFlags { - > None = 0, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > Scientific = 1 << 4, - > Octal = 1 << 5, - > HexSpecifier = 1 << 6, - > BinarySpecifier = 1 << 7, - > OctalSpecifier = 1 << 8, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - > } -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) -3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) ---- ->>>(function (TokenFlags) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > TokenFlags -1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) -3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["None"] = 0] = "None"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > None = 0 -3 > -1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1->, - > /* @internal */ - > -2 > PrecedingLineBreak = 1 << 0 -3 > -1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) -3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > PrecedingJSDocComment = 1 << 1 -3 > -1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) -3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 >, - > /* @internal */ - > -2 > Unterminated = 1 << 2 -3 > -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) -3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > ExtendedUnicodeEscape = 1 << 3 -3 > -1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) -3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, - > -2 > Scientific = 1 << 4 -3 > -1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) -3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^-> -1 >, - > -2 > Octal = 1 << 5 -3 > -1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) -3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1->, - > -2 > HexSpecifier = 1 << 6 -3 > -1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) -3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > -2 > BinarySpecifier = 1 << 7 -3 > -1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) -3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1 >, - > -2 > OctalSpecifier = 1 << 8 -3 > -1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) -3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->, - > /* @internal */ - > -2 > ContainsSeparator = 1 << 9 -3 > -1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) -3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, - > /* @internal */ - > -2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier -3 > -1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) -3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) ---- ->>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, - > /* @internal */ - > -2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator -3 > -1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) -3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) ---- ->>>})(TokenFlags || (TokenFlags = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^^^^^^ -1 > - > -2 >} -3 > -4 > TokenFlags -5 > -6 > TokenFlags -7 > { - > None = 0, - > /* @internal */ - > PrecedingLineBreak = 1 << 0, - > /* @internal */ - > PrecedingJSDocComment = 1 << 1, - > /* @internal */ - > Unterminated = 1 << 2, - > /* @internal */ - > ExtendedUnicodeEscape = 1 << 3, - > Scientific = 1 << 4, - > Octal = 1 << 5, - > HexSpecifier = 1 << 6, - > BinarySpecifier = 1 << 7, - > OctalSpecifier = 1 << 8, - > /* @internal */ - > ContainsSeparator = 1 << 9, - > /* @internal */ - > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, - > /* @internal */ - > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator - > } -1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) -3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) -4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) -6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) -7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 > - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) -2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) -3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) -5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) -6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) -3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) -4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) -5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) -6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) -7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) -8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(22, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-1109) -var TokenFlags; -(function (TokenFlags) { - TokenFlags[TokenFlags["None"] = 0] = "None"; - TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; - TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; - TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; - TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; - TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; - TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; - TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; - TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; - TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; - TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; - TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; - TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; -})(TokenFlags || (TokenFlags = {})); -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-40) -declare enum TokenFlags { - None = 0, - ----------------------------------------------------------------------- -internal: (40-151) - PrecedingLineBreak = 1, - PrecedingJSDocComment = 2, - Unterminated = 4, - ExtendedUnicodeEscape = 8, ----------------------------------------------------------------------- -text: (152-265) - Scientific = 16, - Octal = 32, - HexSpecifier = 64, - BinarySpecifier = 128, - OctalSpecifier = 256, - ----------------------------------------------------------------------- -internal: (265-358) - ContainsSeparator = 512, - BinaryOrOctalSpecifier = 384, - NumericLiteralFlags = 1008 ----------------------------------------------------------------------- -text: (359-510) -} -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 1109, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "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" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 5783 -} - 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 deleted file mode 100644 index cd23800ee344c..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,1922 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [ - { "path": "../first", "prepend": true } - ] -} - -//// [/src/third/third_part1.ts] -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, - "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:23 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:25 AM] Building project '/src/first/tsconfig.json'... - -[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:36 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:37 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:38 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2660 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:42 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 'src/first/bin/first-output.tsbuildinfo' is older than input 'src/first/first_PART1.ts' - -[12:00:44 AM] Building project '/src/first/tsconfig.json'... - -[12:00:53 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:00:54 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:55 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:56 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-103) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-148) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 103, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2658 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:02 AM] Building project '/src/first/tsconfig.json'... - -[12:01:10 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:01:11 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:01:12 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:01:13 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-119) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-148) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 119, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2730 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:17 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:19 AM] Building project '/src/first/tsconfig.json'... - -[12:01:27 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:01:28 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:01:29 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:01:30 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/first/bin/first-output.d.ts": 1, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1 -} - -//// [/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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-119) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 119, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2677 -} - 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 deleted file mode 100644 index 6a548f5593400..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js +++ /dev/null @@ -1,308 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/* @internal */ const A = 1; - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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 -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - - -//// [/src/second/second_part2.ts] -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": [] -} - -//// [/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" - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:22 AM] Projects in this build: - * src/first/tsconfig.json - * src/third/tsconfig.json - -[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:24 AM] Building project '/src/first/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:35 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:12:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -12 { -   ~ -13 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -14 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -15 } -  ~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts] -declare const A = 1; -//# 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"],"names":[],"mappings":"AAAgB,QAAA,MAAM,CAAC,IAAI,CAAC"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>declare const A = 1; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >/* @internal */ -2 > -3 > const -4 > A -5 > = 1 -6 > ; -1 >Emitted(1, 1) Source(1, 17) + SourceIndex(0) -2 >Emitted(1, 9) Source(1, 17) + SourceIndex(0) -3 >Emitted(1, 15) Source(1, 23) + SourceIndex(0) -4 >Emitted(1, 16) Source(1, 24) + SourceIndex(0) -5 >Emitted(1, 20) Source(1, 28) + SourceIndex(0) -6 >Emitted(1, 21) Source(1, 29) + SourceIndex(0) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -/* @internal */ var A = 1; -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/* @internal */ var A = 1; -1 > -2 >^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^ -6 > ^^^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^-> -1 > -2 >/* @internal */ -3 > -4 > const -5 > A -6 > = -7 > 1 -8 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -3 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 23) + SourceIndex(0) -5 >Emitted(1, 22) Source(1, 24) + SourceIndex(0) -6 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) -7 >Emitted(1, 26) Source(1, 28) + SourceIndex(0) -8 >Emitted(1, 27) Source(1, 29) + SourceIndex(0) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts"],"js":{"sections":[{"pos":0,"end":27,"kind":"text"}],"mapHash":"8137573854-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC\"}","hash":"-4091813828-/* @internal */ var A = 1;\n//# sourceMappingURL=first-output.js.map"},"dts":{"sections":[{"pos":0,"end":20,"kind":"internal"}],"mapHash":"1199471594-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAgB,QAAA,MAAM,CAAC,IAAI,CAAC\"}","hash":"-2434260201-declare const A = 1;\n//# sourceMappingURL=first-output.d.ts.map"}},"program":{"fileNames":["../../../lib/lib.d.ts","../first_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; };","2890484261-/* @internal */ const A = 1;"],"root":[2],"options":{"composite":true,"declaration":true,"declarationMap":true,"outFile":"./first-output.js","skipDefaultLibCheck":true,"sourceMap":true},"outSignature":"-2042065392-declare const A = 1;\n","latestChangedDtsFile":"./first-output.d.ts"},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-27) -/* @internal */ var A = 1; - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-20) -declare const A = 1; -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 27, - "kind": "text" - } - ], - "hash": "-4091813828-/* @internal */ var A = 1;\n//# sourceMappingURL=first-output.js.map", - "mapHash": "8137573854-{\"version\":3,\"file\":\"first-output.js\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAA,eAAe,CAAC,IAAM,CAAC,GAAG,CAAC,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 20, - "kind": "internal" - } - ], - "hash": "-2434260201-declare const A = 1;\n//# sourceMappingURL=first-output.d.ts.map", - "mapHash": "1199471594-{\"version\":3,\"file\":\"first-output.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"../first_PART1.ts\"],\"names\":[],\"mappings\":\"AAAgB,QAAA,MAAM,CAAC,IAAI,CAAC\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts" - ], - "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": "2890484261-/* @internal */ const A = 1;" - }, - "root": [ - [ - 2, - "../first_part1.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "outFile": "./first-output.js", - "skipDefaultLibCheck": true, - "sourceMap": true - }, - "outSignature": "-2042065392-declare const A = 1;\n", - "latestChangedDtsFile": "./first-output.d.ts" - }, - "version": "FakeTSVersion", - "size": 1590 -} - 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 deleted file mode 100644 index 856b1c8d07a9d..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,1416 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [ - { "path": "../first", "prepend": true } - ] -} - -//// [/src/third/third_part1.ts] -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, - "declaration": 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:26 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:28 AM] Building project '/src/first/tsconfig.json'... - -[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:39 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:40 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:41 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2661 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:45 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:47 AM] Building project '/src/first/tsconfig.json'... - -[12:00:55 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:00:56 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:57 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:00:58 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2734 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:02 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:04 AM] Building project '/src/first/tsconfig.json'... - -[12:01:12 AM] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist - -[12:01:13 AM] Building project '/src/second/tsconfig.json'... - -src/second/tsconfig.json:15:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -15 { "path": "../first", "prepend": true } -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:01:14 AM] Project 'src/third/tsconfig.json' can't be built because its dependency 'src/second' has errors - -[12:01:15 AM] Skipping build of project '/src/third/tsconfig.json' because its dependency '/src/second' has errors - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2683 -} - 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 deleted file mode 100644 index 8c5b0889954ab..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,4149 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [] -} - -//// [/src/third/third_part1.ts] -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, - "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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:24 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:26 AM] Building project '/src/first/tsconfig.json'... - -[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:37 AM] Building project '/src/second/tsconfig.json'... - -[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:48 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(7, 5) Source(15, 19) + SourceIndex(0) -2 >Emitted(7, 9) Source(15, 23) + SourceIndex(0) -3 >Emitted(7, 11) Source(15, 25) + SourceIndex(0) -4 >Emitted(7, 17) Source(15, 31) + SourceIndex(0) -5 >Emitted(7, 18) Source(15, 32) + SourceIndex(0) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(9, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(9, 9) Source(17, 23) + SourceIndex(0) -3 >Emitted(9, 10) Source(17, 24) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 30) + SourceIndex(0) -5 >Emitted(9, 20) Source(18, 36) + SourceIndex(0) -6 >Emitted(9, 21) Source(17, 41) + SourceIndex(0) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(10, 5) Source(18, 19) + SourceIndex(0) -2 >Emitted(10, 9) Source(18, 23) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 24) + SourceIndex(0) -4 >Emitted(10, 11) Source(18, 25) + SourceIndex(0) -5 >Emitted(10, 16) Source(18, 30) + SourceIndex(0) -6 >Emitted(10, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 41) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(13, 5) Source(21, 19) + SourceIndex(0) -2 >Emitted(13, 11) Source(21, 32) + SourceIndex(0) -3 >Emitted(13, 12) Source(21, 33) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(14, 6) Source(21, 37) + SourceIndex(0) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(15, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(15, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(15, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(15, 26) Source(22, 43) + SourceIndex(0) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(16, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 36) + SourceIndex(0) -3 >Emitted(16, 28) Source(23, 49) + SourceIndex(0) -4 >Emitted(16, 29) Source(23, 50) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(17, 9) Source(23, 52) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 65) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 66) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(18, 10) Source(23, 69) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(19, 6) Source(23, 71) + SourceIndex(0) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(20, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 36) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 45) + SourceIndex(0) -4 >Emitted(20, 25) Source(24, 46) + SourceIndex(0) -5 >Emitted(20, 34) Source(24, 55) + SourceIndex(0) -6 >Emitted(20, 35) Source(24, 56) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(21, 9) Source(24, 58) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 71) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 80) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(22, 10) Source(24, 83) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(23, 6) Source(24, 85) + SourceIndex(0) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(24, 5) Source(25, 19) + SourceIndex(0) -2 >Emitted(24, 11) Source(25, 25) + SourceIndex(0) -3 >Emitted(24, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(24, 29) Source(25, 43) + SourceIndex(0) -5 >Emitted(24, 32) Source(25, 46) + SourceIndex(0) -6 >Emitted(24, 45) Source(25, 59) + SourceIndex(0) -7 >Emitted(24, 46) Source(25, 60) + SourceIndex(0) -8 >Emitted(24, 47) Source(25, 61) + SourceIndex(0) -9 >Emitted(24, 48) Source(25, 62) + SourceIndex(0) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(25, 5) Source(26, 19) + SourceIndex(0) -2 >Emitted(25, 10) Source(26, 31) + SourceIndex(0) -3 >Emitted(25, 22) Source(26, 43) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 46) + SourceIndex(0) -5 >Emitted(25, 34) Source(26, 55) + SourceIndex(0) -6 >Emitted(25, 35) Source(26, 56) + SourceIndex(0) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(26, 5) Source(27, 26) + SourceIndex(0) -2 >Emitted(26, 11) Source(27, 32) + SourceIndex(0) -3 >Emitted(26, 24) Source(27, 45) + SourceIndex(0) -4 >Emitted(26, 29) Source(27, 50) + SourceIndex(0) -5 >Emitted(26, 30) Source(27, 51) + SourceIndex(0) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(27, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 31) + SourceIndex(0) -3 >Emitted(27, 22) Source(28, 43) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(28, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 47) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 47) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(29, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 50) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 50) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(30, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 53) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 53) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(31, 6) Source(28, 55) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(33, 1) Source(30, 15) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 21) + SourceIndex(0) -3 >Emitted(33, 24) Source(30, 30) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(34, 2) Source(30, 33) + SourceIndex(0) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(35, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(35, 18) Source(31, 24) + SourceIndex(0) -3 >Emitted(35, 29) Source(31, 35) + SourceIndex(0) -4 >Emitted(35, 38) Source(31, 40) + SourceIndex(0) ---- ->>>declare namespace internalNamespace { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1 >Emitted(36, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(36, 19) Source(32, 25) + SourceIndex(0) -3 >Emitted(36, 36) Source(32, 42) + SourceIndex(0) -4 >Emitted(36, 37) Source(32, 43) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(37, 5) Source(32, 45) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 58) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(38, 6) Source(32, 70) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(39, 2) Source(32, 72) + SourceIndex(0) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(40, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(40, 19) Source(33, 25) + SourceIndex(0) -3 >Emitted(40, 32) Source(33, 38) + SourceIndex(0) -4 >Emitted(40, 33) Source(33, 39) + SourceIndex(0) -5 >Emitted(40, 42) Source(33, 48) + SourceIndex(0) -6 >Emitted(40, 43) Source(33, 49) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(41, 5) Source(33, 51) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 64) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 73) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(42, 6) Source(33, 76) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(43, 2) Source(33, 78) + SourceIndex(0) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(44, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(44, 8) Source(34, 22) + SourceIndex(0) -3 >Emitted(44, 22) Source(34, 36) + SourceIndex(0) -4 >Emitted(44, 25) Source(34, 39) + SourceIndex(0) -5 >Emitted(44, 42) Source(34, 56) + SourceIndex(0) -6 >Emitted(44, 43) Source(34, 57) + SourceIndex(0) -7 >Emitted(44, 52) Source(34, 66) + SourceIndex(0) -8 >Emitted(44, 53) Source(34, 67) + SourceIndex(0) ---- ->>>type internalType = internalC; -1 > -2 >^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^-> -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(45, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(45, 6) Source(35, 20) + SourceIndex(0) -3 >Emitted(45, 18) Source(35, 32) + SourceIndex(0) -4 >Emitted(45, 21) Source(35, 35) + SourceIndex(0) -5 >Emitted(45, 30) Source(35, 44) + SourceIndex(0) -6 >Emitted(45, 31) Source(35, 45) + SourceIndex(0) ---- ->>>declare const internalConst = 10; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1->Emitted(46, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(46, 9) Source(36, 15) + SourceIndex(0) -3 >Emitted(46, 15) Source(36, 21) + SourceIndex(0) -4 >Emitted(46, 28) Source(36, 34) + SourceIndex(0) -5 >Emitted(46, 33) Source(36, 39) + SourceIndex(0) -6 >Emitted(46, 34) Source(36, 40) + SourceIndex(0) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(47, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(47, 14) Source(37, 20) + SourceIndex(0) -3 >Emitted(47, 26) Source(37, 32) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(48, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 36) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 36) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(49, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 39) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 39) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(50, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 42) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 42) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(52, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(52, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(52, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(53, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(9, 5) Source(14, 5) + SourceIndex(0) -2 >Emitted(9, 18) Source(14, 18) + SourceIndex(0) -3 >Emitted(9, 19) Source(14, 19) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(10, 5) Source(14, 35) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) ---- ->>> /*@internal*/ normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^ -7 > ^ -1-> - > /*@internal*/ prop: string; - > -2 > /*@internal*/ -3 > -4 > method -5 > -6 > method() { -7 > } -1->Emitted(11, 5) Source(16, 5) + SourceIndex(0) -2 >Emitted(11, 18) Source(16, 18) + SourceIndex(0) -3 >Emitted(11, 19) Source(16, 19) + SourceIndex(0) -4 >Emitted(11, 43) Source(16, 25) + SourceIndex(0) -5 >Emitted(11, 46) Source(16, 19) + SourceIndex(0) -6 >Emitted(11, 60) Source(16, 30) + SourceIndex(0) -7 >Emitted(11, 61) Source(16, 31) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(12, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 23) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 24) + SourceIndex(0) ---- ->>> /*@internal*/ get: function () { return 10; }, -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^ -6 > ^^ -7 > ^ -8 > ^ -9 > ^ -1-> -2 > /*@internal*/ -3 > -4 > get c() { -5 > return -6 > 10 -7 > ; -8 > -9 > } -1->Emitted(13, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(13, 22) Source(17, 18) + SourceIndex(0) -3 >Emitted(13, 28) Source(17, 19) + SourceIndex(0) -4 >Emitted(13, 42) Source(17, 29) + SourceIndex(0) -5 >Emitted(13, 49) Source(17, 36) + SourceIndex(0) -6 >Emitted(13, 51) Source(17, 38) + SourceIndex(0) -7 >Emitted(13, 52) Source(17, 39) + SourceIndex(0) -8 >Emitted(13, 53) Source(17, 40) + SourceIndex(0) -9 >Emitted(13, 54) Source(17, 41) + SourceIndex(0) ---- ->>> /*@internal*/ set: function (val) { }, -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^ -7 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > set c( -5 > val: number -6 > ) { -7 > } -1 >Emitted(14, 9) Source(18, 5) + SourceIndex(0) -2 >Emitted(14, 22) Source(18, 18) + SourceIndex(0) -3 >Emitted(14, 28) Source(18, 19) + SourceIndex(0) -4 >Emitted(14, 38) Source(18, 25) + SourceIndex(0) -5 >Emitted(14, 41) Source(18, 36) + SourceIndex(0) -6 >Emitted(14, 45) Source(18, 40) + SourceIndex(0) -7 >Emitted(14, 46) Source(18, 41) + SourceIndex(0) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(22, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(22, 18) Source(21, 18) + SourceIndex(0) -3 >Emitted(22, 19) Source(21, 19) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 37) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 36) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 37) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 19) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 37) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 32) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 33) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 37) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 37) + SourceIndex(0) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(28, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(28, 18) Source(22, 18) + SourceIndex(0) -3 >Emitted(28, 19) Source(22, 19) + SourceIndex(0) -4 >Emitted(28, 28) Source(22, 35) + SourceIndex(0) -5 >Emitted(28, 31) Source(22, 38) + SourceIndex(0) -6 >Emitted(28, 36) Source(22, 42) + SourceIndex(0) -7 >Emitted(28, 37) Source(22, 43) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 5) Source(22, 35) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 38) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 43) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 43) + SourceIndex(0) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(30, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(30, 18) Source(23, 18) + SourceIndex(0) -3 >Emitted(30, 19) Source(23, 19) + SourceIndex(0) -4 >Emitted(30, 23) Source(23, 36) + SourceIndex(0) -5 >Emitted(30, 36) Source(23, 49) + SourceIndex(0) -6 >Emitted(30, 37) Source(23, 71) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(31, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 36) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 49) + SourceIndex(0) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 69) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 68) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 69) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 52) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 69) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 65) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 66) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 69) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 69) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 70) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 71) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 36) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 49) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 36) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 49) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 36) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 49) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 71) + SourceIndex(0) ---- ->>> /*@internal*/ var someOther; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someOther -6 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 5) + SourceIndex(0) -2 >Emitted(39, 18) Source(24, 18) + SourceIndex(0) -3 >Emitted(39, 19) Source(24, 19) + SourceIndex(0) -4 >Emitted(39, 23) Source(24, 36) + SourceIndex(0) -5 >Emitted(39, 32) Source(24, 45) + SourceIndex(0) -6 >Emitted(39, 33) Source(24, 85) + SourceIndex(0) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(40, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 36) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 45) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 46) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 55) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 85) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 46) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 55) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 83) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 82) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 83) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 58) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 83) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 71) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 80) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 83) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 83) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 84) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 85) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 46) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 55) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 46) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 55) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 46) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 55) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 85) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 84) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 85) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 36) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 45) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 36) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 45) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 36) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 45) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 85) + SourceIndex(0) ---- ->>> /*@internal*/ normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1 > - > -2 > /*@internal*/ -3 > export import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1 >Emitted(51, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(51, 18) Source(25, 18) + SourceIndex(0) -3 >Emitted(51, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(51, 37) Source(25, 43) + SourceIndex(0) -5 >Emitted(51, 40) Source(25, 46) + SourceIndex(0) -6 >Emitted(51, 53) Source(25, 59) + SourceIndex(0) -7 >Emitted(51, 54) Source(25, 60) + SourceIndex(0) -8 >Emitted(51, 55) Source(25, 61) + SourceIndex(0) -9 >Emitted(51, 56) Source(25, 62) + SourceIndex(0) ---- ->>> /*@internal*/ normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > -2 > /*@internal*/ -3 > export const -4 > internalConst -5 > = -6 > 10 -7 > ; -1 >Emitted(52, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(52, 18) Source(27, 18) + SourceIndex(0) -3 >Emitted(52, 19) Source(27, 32) + SourceIndex(0) -4 >Emitted(52, 40) Source(27, 45) + SourceIndex(0) -5 >Emitted(52, 43) Source(27, 48) + SourceIndex(0) -6 >Emitted(52, 45) Source(27, 50) + SourceIndex(0) -7 >Emitted(52, 46) Source(27, 51) + SourceIndex(0) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 5) + SourceIndex(0) -2 >Emitted(53, 18) Source(28, 18) + SourceIndex(0) -3 >Emitted(53, 19) Source(28, 19) + SourceIndex(0) -4 >Emitted(53, 23) Source(28, 31) + SourceIndex(0) -5 >Emitted(53, 35) Source(28, 55) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(54, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 31) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 43) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 47) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 47) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 50) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 50) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 53) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 53) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 54) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 55) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 31) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 43) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 31) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 43) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 31) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 43) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 55) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(60, 1) Source(30, 1) + SourceIndex(0) -2 >Emitted(60, 14) Source(30, 14) + SourceIndex(0) -3 >Emitted(60, 15) Source(30, 15) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 33) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 32) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 33) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 15) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 33) + SourceIndex(0) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(65, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(65, 14) Source(31, 14) + SourceIndex(0) -3 >Emitted(65, 15) Source(31, 15) + SourceIndex(0) -4 >Emitted(65, 24) Source(31, 24) + SourceIndex(0) -5 >Emitted(65, 35) Source(31, 35) + SourceIndex(0) -6 >Emitted(65, 40) Source(31, 39) + SourceIndex(0) -7 >Emitted(65, 41) Source(31, 40) + SourceIndex(0) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(66, 14) Source(32, 14) + SourceIndex(0) -3 >Emitted(66, 15) Source(32, 15) + SourceIndex(0) -4 >Emitted(66, 19) Source(32, 25) + SourceIndex(0) -5 >Emitted(66, 36) Source(32, 42) + SourceIndex(0) -6 >Emitted(66, 37) Source(32, 72) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(67, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 25) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 42) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 69) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 70) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 45) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 70) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 58) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 67) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 70) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 70) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 71) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 72) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 25) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 42) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 25) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 42) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 72) + SourceIndex(0) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(75, 14) Source(33, 14) + SourceIndex(0) -3 >Emitted(75, 15) Source(33, 15) + SourceIndex(0) -4 >Emitted(75, 19) Source(33, 25) + SourceIndex(0) -5 >Emitted(75, 32) Source(33, 38) + SourceIndex(0) -6 >Emitted(75, 33) Source(33, 78) + SourceIndex(0) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(76, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 25) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 38) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 39) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 48) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 78) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 39) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 48) + SourceIndex(0) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 76) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 75) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 76) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 51) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 76) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 64) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 73) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 76) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 76) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 77) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 78) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 39) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 48) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 39) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 48) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 39) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 48) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 78) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 77) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 78) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 25) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 38) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 25) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 38) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 78) + SourceIndex(0) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(87, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(87, 14) Source(34, 14) + SourceIndex(0) -3 >Emitted(87, 15) Source(34, 15) + SourceIndex(0) -4 >Emitted(87, 19) Source(34, 22) + SourceIndex(0) -5 >Emitted(87, 33) Source(34, 36) + SourceIndex(0) -6 >Emitted(87, 36) Source(34, 39) + SourceIndex(0) -7 >Emitted(87, 53) Source(34, 56) + SourceIndex(0) -8 >Emitted(87, 54) Source(34, 57) + SourceIndex(0) -9 >Emitted(87, 63) Source(34, 66) + SourceIndex(0) -10>Emitted(87, 64) Source(34, 67) + SourceIndex(0) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(88, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(88, 14) Source(36, 14) + SourceIndex(0) -3 >Emitted(88, 15) Source(36, 15) + SourceIndex(0) -4 >Emitted(88, 19) Source(36, 21) + SourceIndex(0) -5 >Emitted(88, 32) Source(36, 34) + SourceIndex(0) -6 >Emitted(88, 35) Source(36, 37) + SourceIndex(0) -7 >Emitted(88, 37) Source(36, 39) + SourceIndex(0) -8 >Emitted(88, 38) Source(36, 40) + SourceIndex(0) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 1) + SourceIndex(0) -2 >Emitted(89, 14) Source(37, 14) + SourceIndex(0) -3 >Emitted(89, 15) Source(37, 15) + SourceIndex(0) -4 >Emitted(89, 19) Source(37, 20) + SourceIndex(0) -5 >Emitted(89, 31) Source(37, 44) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(90, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 20) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 32) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 36) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 36) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(92, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 39) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 39) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > c -3 > -1 >Emitted(93, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 42) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 42) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 43) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 44) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 20) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 32) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 20) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 32) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-3315) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = /** @class */ (function () { - /*@internal*/ function normalC() { - } - /*@internal*/ normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - /*@internal*/ get: function () { return 10; }, - /*@internal*/ set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - /*@internal*/ var C = /** @class */ (function () { - function C() { - } - return C; - }()); - normalN.C = C; - /*@internal*/ function foo() { } - normalN.foo = foo; - /*@internal*/ var someNamespace; - (function (someNamespace) { - var C = /** @class */ (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - /*@internal*/ var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - /*@internal*/ normalN.someImport = someNamespace.C; - /*@internal*/ normalN.internalConst = 10; - /*@internal*/ var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -/*@internal*/ var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-72) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (72-173) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (174-204) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (204-578) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (579-581) -} - ----------------------------------------------------------------------- -internal: (581-968) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (969-1014) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3315, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "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" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 11757 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2661 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:54 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:00:56 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:05 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:06 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2734 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:10 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:01:11 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:12 AM] Building project '/src/first/tsconfig.json'... - -[12:01:20 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:21 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:22 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2683 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js deleted file mode 100644 index 552668db7956a..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js +++ /dev/null @@ -1,4572 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -namespace N { - // Comment text -} - -namespace N { - function f() { - console.log('testing'); - } - - f(); -} - -class normalC { - /*@internal*/ constructor() { } - /*@internal*/ prop: string; - /*@internal*/ method() { } - /*@internal*/ get c() { return 10; } - /*@internal*/ set c(val: number) { } -} -namespace normalN { - /*@internal*/ export class C { } - /*@internal*/ export function foo() {} - /*@internal*/ export namespace someNamespace { export class C {} } - /*@internal*/ export namespace someOther.something { export class someClass {} } - /*@internal*/ export import someImport = someNamespace.C; - /*@internal*/ export type internalType = internalC; - /*@internal*/ export const internalConst = 10; - /*@internal*/ export enum internalEnum { a, b, c } -} -/*@internal*/ class internalC {} -/*@internal*/ function internalfoo() {} -/*@internal*/ namespace internalNamespace { export class someClass {} } -/*@internal*/ namespace internalOther.something { export class someClass {} } -/*@internal*/ import internalImport = internalNamespace.someClass; -/*@internal*/ type internalType = internalC; -/*@internal*/ const internalConst = 10; -/*@internal*/ enum internalEnum { a, b, c } - -//// [/src/second/second_part2.ts] -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": [] -} - -//// [/src/third/third_part1.ts] -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, - "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:21 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:23 AM] Building project '/src/first/tsconfig.json'... - -[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:34 AM] Building project '/src/second/tsconfig.json'... - -[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:45 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); -} -declare namespace normalN { - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 15) Source(13, 7) + SourceIndex(0) -3 >Emitted(5, 22) Source(13, 14) + SourceIndex(0) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(7, 5) Source(15, 19) + SourceIndex(0) -2 >Emitted(7, 9) Source(15, 23) + SourceIndex(0) -3 >Emitted(7, 11) Source(15, 25) + SourceIndex(0) -4 >Emitted(7, 17) Source(15, 31) + SourceIndex(0) -5 >Emitted(7, 18) Source(15, 32) + SourceIndex(0) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(8, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(8, 11) Source(16, 25) + SourceIndex(0) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(9, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(9, 9) Source(17, 23) + SourceIndex(0) -3 >Emitted(9, 10) Source(17, 24) + SourceIndex(0) -4 >Emitted(9, 14) Source(18, 30) + SourceIndex(0) -5 >Emitted(9, 20) Source(18, 36) + SourceIndex(0) -6 >Emitted(9, 21) Source(17, 41) + SourceIndex(0) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(10, 5) Source(18, 19) + SourceIndex(0) -2 >Emitted(10, 9) Source(18, 23) + SourceIndex(0) -3 >Emitted(10, 10) Source(18, 24) + SourceIndex(0) -4 >Emitted(10, 11) Source(18, 25) + SourceIndex(0) -5 >Emitted(10, 16) Source(18, 30) + SourceIndex(0) -6 >Emitted(10, 22) Source(18, 36) + SourceIndex(0) -7 >Emitted(10, 24) Source(18, 41) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(0) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(0) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(0) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(0) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(13, 5) Source(21, 19) + SourceIndex(0) -2 >Emitted(13, 11) Source(21, 32) + SourceIndex(0) -3 >Emitted(13, 12) Source(21, 33) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(14, 6) Source(21, 37) + SourceIndex(0) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(15, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(15, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(15, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(15, 26) Source(22, 43) + SourceIndex(0) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(16, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(16, 15) Source(23, 36) + SourceIndex(0) -3 >Emitted(16, 28) Source(23, 49) + SourceIndex(0) -4 >Emitted(16, 29) Source(23, 50) + SourceIndex(0) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(17, 9) Source(23, 52) + SourceIndex(0) -2 >Emitted(17, 15) Source(23, 65) + SourceIndex(0) -3 >Emitted(17, 16) Source(23, 66) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(18, 10) Source(23, 69) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(19, 6) Source(23, 71) + SourceIndex(0) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(20, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(20, 15) Source(24, 36) + SourceIndex(0) -3 >Emitted(20, 24) Source(24, 45) + SourceIndex(0) -4 >Emitted(20, 25) Source(24, 46) + SourceIndex(0) -5 >Emitted(20, 34) Source(24, 55) + SourceIndex(0) -6 >Emitted(20, 35) Source(24, 56) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(21, 9) Source(24, 58) + SourceIndex(0) -2 >Emitted(21, 15) Source(24, 71) + SourceIndex(0) -3 >Emitted(21, 24) Source(24, 80) + SourceIndex(0) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(22, 10) Source(24, 83) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(23, 6) Source(24, 85) + SourceIndex(0) ---- ->>> export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^ -4 > ^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^ -7 > ^ -8 > ^ -9 > ^ -1-> - > /*@internal*/ -2 > export -3 > import -4 > someImport -5 > = -6 > someNamespace -7 > . -8 > C -9 > ; -1->Emitted(24, 5) Source(25, 19) + SourceIndex(0) -2 >Emitted(24, 11) Source(25, 25) + SourceIndex(0) -3 >Emitted(24, 19) Source(25, 33) + SourceIndex(0) -4 >Emitted(24, 29) Source(25, 43) + SourceIndex(0) -5 >Emitted(24, 32) Source(25, 46) + SourceIndex(0) -6 >Emitted(24, 45) Source(25, 59) + SourceIndex(0) -7 >Emitted(24, 46) Source(25, 60) + SourceIndex(0) -8 >Emitted(24, 47) Source(25, 61) + SourceIndex(0) -9 >Emitted(24, 48) Source(25, 62) + SourceIndex(0) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(25, 5) Source(26, 19) + SourceIndex(0) -2 >Emitted(25, 10) Source(26, 31) + SourceIndex(0) -3 >Emitted(25, 22) Source(26, 43) + SourceIndex(0) -4 >Emitted(25, 25) Source(26, 46) + SourceIndex(0) -5 >Emitted(25, 34) Source(26, 55) + SourceIndex(0) -6 >Emitted(25, 35) Source(26, 56) + SourceIndex(0) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(26, 5) Source(27, 26) + SourceIndex(0) -2 >Emitted(26, 11) Source(27, 32) + SourceIndex(0) -3 >Emitted(26, 24) Source(27, 45) + SourceIndex(0) -4 >Emitted(26, 29) Source(27, 50) + SourceIndex(0) -5 >Emitted(26, 30) Source(27, 51) + SourceIndex(0) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(27, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(27, 10) Source(28, 31) + SourceIndex(0) -3 >Emitted(27, 22) Source(28, 43) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(28, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(28, 10) Source(28, 47) + SourceIndex(0) -3 >Emitted(28, 14) Source(28, 47) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(29, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(29, 10) Source(28, 50) + SourceIndex(0) -3 >Emitted(29, 14) Source(28, 50) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(30, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(30, 10) Source(28, 53) + SourceIndex(0) -3 >Emitted(30, 14) Source(28, 53) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(31, 6) Source(28, 55) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(32, 2) Source(29, 2) + SourceIndex(0) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(33, 1) Source(30, 15) + SourceIndex(0) -2 >Emitted(33, 15) Source(30, 21) + SourceIndex(0) -3 >Emitted(33, 24) Source(30, 30) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(34, 2) Source(30, 33) + SourceIndex(0) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(35, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(35, 18) Source(31, 24) + SourceIndex(0) -3 >Emitted(35, 29) Source(31, 35) + SourceIndex(0) -4 >Emitted(35, 38) Source(31, 40) + SourceIndex(0) ---- ->>>declare namespace internalNamespace { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1 >Emitted(36, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(36, 19) Source(32, 25) + SourceIndex(0) -3 >Emitted(36, 36) Source(32, 42) + SourceIndex(0) -4 >Emitted(36, 37) Source(32, 43) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(37, 5) Source(32, 45) + SourceIndex(0) -2 >Emitted(37, 11) Source(32, 58) + SourceIndex(0) -3 >Emitted(37, 20) Source(32, 67) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(38, 6) Source(32, 70) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(39, 2) Source(32, 72) + SourceIndex(0) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(40, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(40, 19) Source(33, 25) + SourceIndex(0) -3 >Emitted(40, 32) Source(33, 38) + SourceIndex(0) -4 >Emitted(40, 33) Source(33, 39) + SourceIndex(0) -5 >Emitted(40, 42) Source(33, 48) + SourceIndex(0) -6 >Emitted(40, 43) Source(33, 49) + SourceIndex(0) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(41, 5) Source(33, 51) + SourceIndex(0) -2 >Emitted(41, 11) Source(33, 64) + SourceIndex(0) -3 >Emitted(41, 20) Source(33, 73) + SourceIndex(0) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(42, 6) Source(33, 76) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(43, 2) Source(33, 78) + SourceIndex(0) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(44, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(44, 8) Source(34, 22) + SourceIndex(0) -3 >Emitted(44, 22) Source(34, 36) + SourceIndex(0) -4 >Emitted(44, 25) Source(34, 39) + SourceIndex(0) -5 >Emitted(44, 42) Source(34, 56) + SourceIndex(0) -6 >Emitted(44, 43) Source(34, 57) + SourceIndex(0) -7 >Emitted(44, 52) Source(34, 66) + SourceIndex(0) -8 >Emitted(44, 53) Source(34, 67) + SourceIndex(0) ---- ->>>type internalType = internalC; -1 > -2 >^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^-> -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(45, 1) Source(35, 15) + SourceIndex(0) -2 >Emitted(45, 6) Source(35, 20) + SourceIndex(0) -3 >Emitted(45, 18) Source(35, 32) + SourceIndex(0) -4 >Emitted(45, 21) Source(35, 35) + SourceIndex(0) -5 >Emitted(45, 30) Source(35, 44) + SourceIndex(0) -6 >Emitted(45, 31) Source(35, 45) + SourceIndex(0) ---- ->>>declare const internalConst = 10; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1->Emitted(46, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(46, 9) Source(36, 15) + SourceIndex(0) -3 >Emitted(46, 15) Source(36, 21) + SourceIndex(0) -4 >Emitted(46, 28) Source(36, 34) + SourceIndex(0) -5 >Emitted(46, 33) Source(36, 39) + SourceIndex(0) -6 >Emitted(46, 34) Source(36, 40) + SourceIndex(0) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(47, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(47, 14) Source(37, 20) + SourceIndex(0) -3 >Emitted(47, 26) Source(37, 32) + SourceIndex(0) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1 > { -2 > a -3 > -1 >Emitted(48, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(48, 6) Source(37, 36) + SourceIndex(0) -3 >Emitted(48, 10) Source(37, 36) + SourceIndex(0) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > b -3 > -1->Emitted(49, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(49, 6) Source(37, 39) + SourceIndex(0) -3 >Emitted(49, 10) Source(37, 39) + SourceIndex(0) ---- ->>> c = 2 -1 >^^^^ -2 > ^ -3 > ^^^^ -1 >, -2 > c -3 > -1 >Emitted(50, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(50, 6) Source(37, 42) + SourceIndex(0) -3 >Emitted(50, 10) Source(37, 42) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(52, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(52, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(52, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(53, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(53, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(54, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) ---- ->>> function normalC() { -1->^^^^ -2 > ^-> -1->class normalC { - > /*@internal*/ -1->Emitted(9, 5) Source(14, 19) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(10, 5) Source(14, 35) + SourceIndex(0) -2 >Emitted(10, 6) Source(14, 36) + SourceIndex(0) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(11, 5) Source(16, 19) + SourceIndex(0) -2 >Emitted(11, 29) Source(16, 25) + SourceIndex(0) -3 >Emitted(11, 32) Source(16, 19) + SourceIndex(0) -4 >Emitted(11, 46) Source(16, 30) + SourceIndex(0) -5 >Emitted(11, 47) Source(16, 31) + SourceIndex(0) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(12, 5) Source(17, 19) + SourceIndex(0) -2 >Emitted(12, 27) Source(17, 23) + SourceIndex(0) -3 >Emitted(12, 49) Source(17, 24) + SourceIndex(0) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(13, 14) Source(17, 19) + SourceIndex(0) -2 >Emitted(13, 28) Source(17, 29) + SourceIndex(0) -3 >Emitted(13, 35) Source(17, 36) + SourceIndex(0) -4 >Emitted(13, 37) Source(17, 38) + SourceIndex(0) -5 >Emitted(13, 38) Source(17, 39) + SourceIndex(0) -6 >Emitted(13, 39) Source(17, 40) + SourceIndex(0) -7 >Emitted(13, 40) Source(17, 41) + SourceIndex(0) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(14, 14) Source(18, 19) + SourceIndex(0) -2 >Emitted(14, 24) Source(18, 25) + SourceIndex(0) -3 >Emitted(14, 27) Source(18, 36) + SourceIndex(0) -4 >Emitted(14, 31) Source(18, 40) + SourceIndex(0) -5 >Emitted(14, 32) Source(18, 41) + SourceIndex(0) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^-> -1 > -1 >Emitted(17, 8) Source(17, 41) + SourceIndex(0) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(18, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(18, 19) Source(19, 2) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(19, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(13, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(19, 2) + SourceIndex(0) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1-> - > -2 >namespace -3 > normalN -4 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1->Emitted(20, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(20, 5) Source(20, 11) + SourceIndex(0) -3 >Emitted(20, 12) Source(20, 18) + SourceIndex(0) -4 >Emitted(20, 13) Source(29, 2) + SourceIndex(0) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(21, 1) Source(20, 1) + SourceIndex(0) -2 >Emitted(21, 12) Source(20, 11) + SourceIndex(0) -3 >Emitted(21, 19) Source(20, 18) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(22, 5) Source(21, 19) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(23, 9) Source(21, 19) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(24, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(24, 10) Source(21, 37) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(25, 9) Source(21, 36) + SourceIndex(0) -2 >Emitted(25, 17) Source(21, 37) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(26, 5) Source(21, 36) + SourceIndex(0) -2 >Emitted(26, 6) Source(21, 37) + SourceIndex(0) -3 >Emitted(26, 6) Source(21, 19) + SourceIndex(0) -4 >Emitted(26, 10) Source(21, 37) + SourceIndex(0) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(27, 5) Source(21, 32) + SourceIndex(0) -2 >Emitted(27, 14) Source(21, 33) + SourceIndex(0) -3 >Emitted(27, 18) Source(21, 37) + SourceIndex(0) -4 >Emitted(27, 19) Source(21, 37) + SourceIndex(0) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(28, 5) Source(22, 19) + SourceIndex(0) -2 >Emitted(28, 14) Source(22, 35) + SourceIndex(0) -3 >Emitted(28, 17) Source(22, 38) + SourceIndex(0) -4 >Emitted(28, 22) Source(22, 42) + SourceIndex(0) -5 >Emitted(28, 23) Source(22, 43) + SourceIndex(0) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(29, 5) Source(22, 35) + SourceIndex(0) -2 >Emitted(29, 16) Source(22, 38) + SourceIndex(0) -3 >Emitted(29, 22) Source(22, 43) + SourceIndex(0) -4 >Emitted(29, 23) Source(22, 43) + SourceIndex(0) ---- ->>> var someNamespace; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1 >Emitted(30, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(30, 9) Source(23, 36) + SourceIndex(0) -3 >Emitted(30, 22) Source(23, 49) + SourceIndex(0) -4 >Emitted(30, 23) Source(23, 71) + SourceIndex(0) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(31, 5) Source(23, 19) + SourceIndex(0) -2 >Emitted(31, 16) Source(23, 36) + SourceIndex(0) -3 >Emitted(31, 29) Source(23, 49) + SourceIndex(0) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(32, 9) Source(23, 52) + SourceIndex(0) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(33, 13) Source(23, 52) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(34, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(34, 14) Source(23, 69) + SourceIndex(0) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(35, 13) Source(23, 68) + SourceIndex(0) -2 >Emitted(35, 21) Source(23, 69) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(36, 9) Source(23, 68) + SourceIndex(0) -2 >Emitted(36, 10) Source(23, 69) + SourceIndex(0) -3 >Emitted(36, 10) Source(23, 52) + SourceIndex(0) -4 >Emitted(36, 14) Source(23, 69) + SourceIndex(0) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(37, 9) Source(23, 65) + SourceIndex(0) -2 >Emitted(37, 24) Source(23, 66) + SourceIndex(0) -3 >Emitted(37, 28) Source(23, 69) + SourceIndex(0) -4 >Emitted(37, 29) Source(23, 69) + SourceIndex(0) ---- ->>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > someNamespace -5 > -6 > someNamespace -7 > -8 > someNamespace -9 > { export class C {} } -1->Emitted(38, 5) Source(23, 70) + SourceIndex(0) -2 >Emitted(38, 6) Source(23, 71) + SourceIndex(0) -3 >Emitted(38, 8) Source(23, 36) + SourceIndex(0) -4 >Emitted(38, 21) Source(23, 49) + SourceIndex(0) -5 >Emitted(38, 24) Source(23, 36) + SourceIndex(0) -6 >Emitted(38, 45) Source(23, 49) + SourceIndex(0) -7 >Emitted(38, 50) Source(23, 36) + SourceIndex(0) -8 >Emitted(38, 71) Source(23, 49) + SourceIndex(0) -9 >Emitted(38, 79) Source(23, 71) + SourceIndex(0) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(39, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(39, 9) Source(24, 36) + SourceIndex(0) -3 >Emitted(39, 18) Source(24, 45) + SourceIndex(0) -4 >Emitted(39, 19) Source(24, 85) + SourceIndex(0) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(40, 5) Source(24, 19) + SourceIndex(0) -2 >Emitted(40, 16) Source(24, 36) + SourceIndex(0) -3 >Emitted(40, 25) Source(24, 45) + SourceIndex(0) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(41, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(41, 13) Source(24, 46) + SourceIndex(0) -3 >Emitted(41, 22) Source(24, 55) + SourceIndex(0) -4 >Emitted(41, 23) Source(24, 85) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(42, 9) Source(24, 46) + SourceIndex(0) -2 >Emitted(42, 20) Source(24, 46) + SourceIndex(0) -3 >Emitted(42, 29) Source(24, 55) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(43, 13) Source(24, 58) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(44, 17) Source(24, 58) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(45, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(45, 18) Source(24, 83) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(46, 17) Source(24, 82) + SourceIndex(0) -2 >Emitted(46, 33) Source(24, 83) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(47, 13) Source(24, 82) + SourceIndex(0) -2 >Emitted(47, 14) Source(24, 83) + SourceIndex(0) -3 >Emitted(47, 14) Source(24, 58) + SourceIndex(0) -4 >Emitted(47, 18) Source(24, 83) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(48, 13) Source(24, 71) + SourceIndex(0) -2 >Emitted(48, 32) Source(24, 80) + SourceIndex(0) -3 >Emitted(48, 44) Source(24, 83) + SourceIndex(0) -4 >Emitted(48, 45) Source(24, 83) + SourceIndex(0) ---- ->>> })(something = someOther.something || (someOther.something = {})); -1->^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(49, 9) Source(24, 84) + SourceIndex(0) -2 >Emitted(49, 10) Source(24, 85) + SourceIndex(0) -3 >Emitted(49, 12) Source(24, 46) + SourceIndex(0) -4 >Emitted(49, 21) Source(24, 55) + SourceIndex(0) -5 >Emitted(49, 24) Source(24, 46) + SourceIndex(0) -6 >Emitted(49, 43) Source(24, 55) + SourceIndex(0) -7 >Emitted(49, 48) Source(24, 46) + SourceIndex(0) -8 >Emitted(49, 67) Source(24, 55) + SourceIndex(0) -9 >Emitted(49, 75) Source(24, 85) + SourceIndex(0) ---- ->>> })(someOther = normalN.someOther || (normalN.someOther = {})); -1 >^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1 > -2 > } -3 > -4 > someOther -5 > -6 > someOther -7 > -8 > someOther -9 > .something { export class someClass {} } -1 >Emitted(50, 5) Source(24, 84) + SourceIndex(0) -2 >Emitted(50, 6) Source(24, 85) + SourceIndex(0) -3 >Emitted(50, 8) Source(24, 36) + SourceIndex(0) -4 >Emitted(50, 17) Source(24, 45) + SourceIndex(0) -5 >Emitted(50, 20) Source(24, 36) + SourceIndex(0) -6 >Emitted(50, 37) Source(24, 45) + SourceIndex(0) -7 >Emitted(50, 42) Source(24, 36) + SourceIndex(0) -8 >Emitted(50, 59) Source(24, 45) + SourceIndex(0) -9 >Emitted(50, 67) Source(24, 85) + SourceIndex(0) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(51, 5) Source(25, 33) + SourceIndex(0) -2 >Emitted(51, 23) Source(25, 43) + SourceIndex(0) -3 >Emitted(51, 26) Source(25, 46) + SourceIndex(0) -4 >Emitted(51, 39) Source(25, 59) + SourceIndex(0) -5 >Emitted(51, 40) Source(25, 60) + SourceIndex(0) -6 >Emitted(51, 41) Source(25, 61) + SourceIndex(0) -7 >Emitted(51, 42) Source(25, 62) + SourceIndex(0) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(52, 5) Source(27, 32) + SourceIndex(0) -2 >Emitted(52, 26) Source(27, 45) + SourceIndex(0) -3 >Emitted(52, 29) Source(27, 48) + SourceIndex(0) -4 >Emitted(52, 31) Source(27, 50) + SourceIndex(0) -5 >Emitted(52, 32) Source(27, 51) + SourceIndex(0) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(53, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(53, 9) Source(28, 31) + SourceIndex(0) -3 >Emitted(53, 21) Source(28, 55) + SourceIndex(0) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(54, 5) Source(28, 19) + SourceIndex(0) -2 >Emitted(54, 16) Source(28, 31) + SourceIndex(0) -3 >Emitted(54, 28) Source(28, 43) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(55, 9) Source(28, 46) + SourceIndex(0) -2 >Emitted(55, 50) Source(28, 47) + SourceIndex(0) -3 >Emitted(55, 51) Source(28, 47) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(56, 9) Source(28, 49) + SourceIndex(0) -2 >Emitted(56, 50) Source(28, 50) + SourceIndex(0) -3 >Emitted(56, 51) Source(28, 50) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >, -2 > c -3 > -1 >Emitted(57, 9) Source(28, 52) + SourceIndex(0) -2 >Emitted(57, 50) Source(28, 53) + SourceIndex(0) -3 >Emitted(57, 51) Source(28, 53) + SourceIndex(0) ---- ->>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > -8 > internalEnum -9 > { a, b, c } -1->Emitted(58, 5) Source(28, 54) + SourceIndex(0) -2 >Emitted(58, 6) Source(28, 55) + SourceIndex(0) -3 >Emitted(58, 8) Source(28, 31) + SourceIndex(0) -4 >Emitted(58, 20) Source(28, 43) + SourceIndex(0) -5 >Emitted(58, 23) Source(28, 31) + SourceIndex(0) -6 >Emitted(58, 43) Source(28, 43) + SourceIndex(0) -7 >Emitted(58, 48) Source(28, 31) + SourceIndex(0) -8 >Emitted(58, 68) Source(28, 43) + SourceIndex(0) -9 >Emitted(58, 76) Source(28, 55) + SourceIndex(0) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@internal*/ export class C { } - > /*@internal*/ export function foo() {} - > /*@internal*/ export namespace someNamespace { export class C {} } - > /*@internal*/ export namespace someOther.something { export class someClass {} } - > /*@internal*/ export import someImport = someNamespace.C; - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const internalConst = 10; - > /*@internal*/ export enum internalEnum { a, b, c } - > } -1 >Emitted(59, 1) Source(29, 1) + SourceIndex(0) -2 >Emitted(59, 2) Source(29, 2) + SourceIndex(0) -3 >Emitted(59, 4) Source(20, 11) + SourceIndex(0) -4 >Emitted(59, 11) Source(20, 18) + SourceIndex(0) -5 >Emitted(59, 16) Source(20, 11) + SourceIndex(0) -6 >Emitted(59, 23) Source(20, 18) + SourceIndex(0) -7 >Emitted(59, 31) Source(29, 2) + SourceIndex(0) ---- ->>>var internalC = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >/*@internal*/ -1 >Emitted(60, 1) Source(30, 15) + SourceIndex(0) ---- ->>> function internalC() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(61, 5) Source(30, 15) + SourceIndex(0) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(62, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(62, 6) Source(30, 33) + SourceIndex(0) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(63, 5) Source(30, 32) + SourceIndex(0) -2 >Emitted(63, 21) Source(30, 33) + SourceIndex(0) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(64, 1) Source(30, 32) + SourceIndex(0) -2 >Emitted(64, 2) Source(30, 33) + SourceIndex(0) -3 >Emitted(64, 2) Source(30, 15) + SourceIndex(0) -4 >Emitted(64, 6) Source(30, 33) + SourceIndex(0) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(65, 1) Source(31, 15) + SourceIndex(0) -2 >Emitted(65, 10) Source(31, 24) + SourceIndex(0) -3 >Emitted(65, 21) Source(31, 35) + SourceIndex(0) -4 >Emitted(65, 26) Source(31, 39) + SourceIndex(0) -5 >Emitted(65, 27) Source(31, 40) + SourceIndex(0) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(66, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(66, 5) Source(32, 25) + SourceIndex(0) -3 >Emitted(66, 22) Source(32, 42) + SourceIndex(0) -4 >Emitted(66, 23) Source(32, 72) + SourceIndex(0) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(67, 1) Source(32, 15) + SourceIndex(0) -2 >Emitted(67, 12) Source(32, 25) + SourceIndex(0) -3 >Emitted(67, 29) Source(32, 42) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(68, 5) Source(32, 45) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^-> -1-> -1->Emitted(69, 9) Source(32, 45) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(70, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(70, 10) Source(32, 70) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(71, 9) Source(32, 69) + SourceIndex(0) -2 >Emitted(71, 25) Source(32, 70) + SourceIndex(0) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(72, 5) Source(32, 69) + SourceIndex(0) -2 >Emitted(72, 6) Source(32, 70) + SourceIndex(0) -3 >Emitted(72, 6) Source(32, 45) + SourceIndex(0) -4 >Emitted(72, 10) Source(32, 70) + SourceIndex(0) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(73, 5) Source(32, 58) + SourceIndex(0) -2 >Emitted(73, 32) Source(32, 67) + SourceIndex(0) -3 >Emitted(73, 44) Source(32, 70) + SourceIndex(0) -4 >Emitted(73, 45) Source(32, 70) + SourceIndex(0) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(74, 1) Source(32, 71) + SourceIndex(0) -2 >Emitted(74, 2) Source(32, 72) + SourceIndex(0) -3 >Emitted(74, 4) Source(32, 25) + SourceIndex(0) -4 >Emitted(74, 21) Source(32, 42) + SourceIndex(0) -5 >Emitted(74, 26) Source(32, 25) + SourceIndex(0) -6 >Emitted(74, 43) Source(32, 42) + SourceIndex(0) -7 >Emitted(74, 51) Source(32, 72) + SourceIndex(0) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(75, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(75, 5) Source(33, 25) + SourceIndex(0) -3 >Emitted(75, 18) Source(33, 38) + SourceIndex(0) -4 >Emitted(75, 19) Source(33, 78) + SourceIndex(0) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(76, 1) Source(33, 15) + SourceIndex(0) -2 >Emitted(76, 12) Source(33, 25) + SourceIndex(0) -3 >Emitted(76, 25) Source(33, 38) + SourceIndex(0) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(77, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(77, 9) Source(33, 39) + SourceIndex(0) -3 >Emitted(77, 18) Source(33, 48) + SourceIndex(0) -4 >Emitted(77, 19) Source(33, 78) + SourceIndex(0) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(78, 5) Source(33, 39) + SourceIndex(0) -2 >Emitted(78, 16) Source(33, 39) + SourceIndex(0) -3 >Emitted(78, 25) Source(33, 48) + SourceIndex(0) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(79, 9) Source(33, 51) + SourceIndex(0) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^-> -1-> -1->Emitted(80, 13) Source(33, 51) + SourceIndex(0) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(81, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(81, 14) Source(33, 76) + SourceIndex(0) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(82, 13) Source(33, 75) + SourceIndex(0) -2 >Emitted(82, 29) Source(33, 76) + SourceIndex(0) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(83, 9) Source(33, 75) + SourceIndex(0) -2 >Emitted(83, 10) Source(33, 76) + SourceIndex(0) -3 >Emitted(83, 10) Source(33, 51) + SourceIndex(0) -4 >Emitted(83, 14) Source(33, 76) + SourceIndex(0) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(84, 9) Source(33, 64) + SourceIndex(0) -2 >Emitted(84, 28) Source(33, 73) + SourceIndex(0) -3 >Emitted(84, 40) Source(33, 76) + SourceIndex(0) -4 >Emitted(84, 41) Source(33, 76) + SourceIndex(0) ---- ->>> })(something = internalOther.something || (internalOther.something = {})); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^ -9 > ^^^^^^^^ -1-> -2 > } -3 > -4 > something -5 > -6 > something -7 > -8 > something -9 > { export class someClass {} } -1->Emitted(85, 5) Source(33, 77) + SourceIndex(0) -2 >Emitted(85, 6) Source(33, 78) + SourceIndex(0) -3 >Emitted(85, 8) Source(33, 39) + SourceIndex(0) -4 >Emitted(85, 17) Source(33, 48) + SourceIndex(0) -5 >Emitted(85, 20) Source(33, 39) + SourceIndex(0) -6 >Emitted(85, 43) Source(33, 48) + SourceIndex(0) -7 >Emitted(85, 48) Source(33, 39) + SourceIndex(0) -8 >Emitted(85, 71) Source(33, 48) + SourceIndex(0) -9 >Emitted(85, 79) Source(33, 78) + SourceIndex(0) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(86, 1) Source(33, 77) + SourceIndex(0) -2 >Emitted(86, 2) Source(33, 78) + SourceIndex(0) -3 >Emitted(86, 4) Source(33, 25) + SourceIndex(0) -4 >Emitted(86, 17) Source(33, 38) + SourceIndex(0) -5 >Emitted(86, 22) Source(33, 25) + SourceIndex(0) -6 >Emitted(86, 35) Source(33, 38) + SourceIndex(0) -7 >Emitted(86, 43) Source(33, 78) + SourceIndex(0) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(87, 1) Source(34, 15) + SourceIndex(0) -2 >Emitted(87, 5) Source(34, 22) + SourceIndex(0) -3 >Emitted(87, 19) Source(34, 36) + SourceIndex(0) -4 >Emitted(87, 22) Source(34, 39) + SourceIndex(0) -5 >Emitted(87, 39) Source(34, 56) + SourceIndex(0) -6 >Emitted(87, 40) Source(34, 57) + SourceIndex(0) -7 >Emitted(87, 49) Source(34, 66) + SourceIndex(0) -8 >Emitted(87, 50) Source(34, 67) + SourceIndex(0) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(88, 1) Source(36, 15) + SourceIndex(0) -2 >Emitted(88, 5) Source(36, 21) + SourceIndex(0) -3 >Emitted(88, 18) Source(36, 34) + SourceIndex(0) -4 >Emitted(88, 21) Source(36, 37) + SourceIndex(0) -5 >Emitted(88, 23) Source(36, 39) + SourceIndex(0) -6 >Emitted(88, 24) Source(36, 40) + SourceIndex(0) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(89, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(89, 5) Source(37, 20) + SourceIndex(0) -3 >Emitted(89, 17) Source(37, 44) + SourceIndex(0) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(90, 1) Source(37, 15) + SourceIndex(0) -2 >Emitted(90, 12) Source(37, 20) + SourceIndex(0) -3 >Emitted(90, 24) Source(37, 32) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1-> { -2 > a -3 > -1->Emitted(91, 5) Source(37, 35) + SourceIndex(0) -2 >Emitted(91, 46) Source(37, 36) + SourceIndex(0) -3 >Emitted(91, 47) Source(37, 36) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > b -3 > -1 >Emitted(92, 5) Source(37, 38) + SourceIndex(0) -2 >Emitted(92, 46) Source(37, 39) + SourceIndex(0) -3 >Emitted(92, 47) Source(37, 39) + SourceIndex(0) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1 >, -2 > c -3 > -1 >Emitted(93, 5) Source(37, 41) + SourceIndex(0) -2 >Emitted(93, 46) Source(37, 42) + SourceIndex(0) -3 >Emitted(93, 47) Source(37, 42) + SourceIndex(0) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(94, 1) Source(37, 43) + SourceIndex(0) -2 >Emitted(94, 2) Source(37, 44) + SourceIndex(0) -3 >Emitted(94, 4) Source(37, 20) + SourceIndex(0) -4 >Emitted(94, 16) Source(37, 32) + SourceIndex(0) -5 >Emitted(94, 21) Source(37, 20) + SourceIndex(0) -6 >Emitted(94, 33) Source(37, 32) + SourceIndex(0) -7 >Emitted(94, 41) Source(37, 44) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(95, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(96, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(97, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(97, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(98, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(98, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(98, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(99, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(99, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(99, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(99, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(99, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(99, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(99, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(99, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(100, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(100, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(101, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(101, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(102, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(102, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-2951) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - var internalEnum; - (function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; - })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); -})(normalN || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-72) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (72-173) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (174-204) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (204-578) - class C { - } - function foo(): void; - namespace someNamespace { - class C { - } - } - namespace someOther.something { - class someClass { - } - } - export import someImport = someNamespace.C; - type internalType = internalC; - const internalConst = 10; - enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (579-581) -} - ----------------------------------------------------------------------- -internal: (581-968) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (969-1014) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 2951, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "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" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 11212 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-149) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2660 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:51 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:00:53 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:03 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:04 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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":"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"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-103) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-148) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 103, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2658 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:08 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:01:10 AM] Building project '/src/first/tsconfig.json'... - -[12:01:18 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:19 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:20 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-119) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-37) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (38-148) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 119, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 37, - "kind": "internal" - }, - { - "pos": 38, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2730 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:24 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:26 AM] Building project '/src/first/tsconfig.json'... - -[12:01:34 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/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:36 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:19:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -19 { -   ~ -20 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -21 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -22 }, -  ~~~~~ - -src/third/tsconfig.json:23:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -23 { -   ~ -24 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -25 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -26 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-119) -var s = "Hola, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-148) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 119, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 148, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2677 -} - 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 deleted file mode 100644 index 91d3db3b3c00a..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,2227 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -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()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -/// -const second_part1Const = new secondsecond_part1(); -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -/// -const third_part1Const = new thirdthird_part1(); -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:24 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:26 AM] Building project '/src/first/tsconfig.json'... - -[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:37 AM] Building project '/src/second/tsconfig.json'... - -[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:48 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/2/second-output.d.ts] -/// -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>/// ->>>declare const second_part1Const: secondsecond_part1; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -5 >Emitted(2, 52) Source(2, 51) + SourceIndex(0) -6 >Emitted(2, 53) Source(2, 52) + SourceIndex(0) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(3, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(3, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 19) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 20) Source(7, 12) + SourceIndex(0) -4 >Emitted(5, 21) Source(7, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1 >/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(1, 22) Source(2, 24) + SourceIndex(0) -4 >Emitted(1, 25) Source(2, 27) + SourceIndex(0) -5 >Emitted(1, 29) Source(2, 31) + SourceIndex(0) -6 >Emitted(1, 47) Source(2, 49) + SourceIndex(0) -7 >Emitted(1, 49) Source(2, 51) + SourceIndex(0) -8 >Emitted(1, 50) Source(2, 52) + SourceIndex(0) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(2, 6) Source(7, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(13, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(7, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(7, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(8, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(8, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(9, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(9, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(9, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(9, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(9, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(9, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(9, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(9, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(12, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(12, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(12, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(8, 4) Source(7, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(7, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(7, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(7, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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 { }","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-320) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -reference: (0-49):: ../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (50-196) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 320, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 49, - "kind": "reference", - "data": "../second/tripleRef.d.ts" - }, - { - "pos": 50, - "end": 196, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/tripleref.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../second/tripleref.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ] - ] - ], - "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", - "size": 3300 -} - -//// [/src/first/bin/first-output.d.ts] -/// -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -//# 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;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(5, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-151) -var s = "Hello, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (43-242) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 151, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 43, - "end": 242, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../tripleref.d.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": "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": [ - [ - 2, - "../first_part1.ts" - ], - [ - 4, - "../first_part2.ts" - ], - [ - 5, - "../first_part3.ts" - ] - ], - "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", - "size": 3160 -} - - - -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); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:54 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:00:56 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:06 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:07 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts] -/// -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -//# 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,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-150) -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (43-241) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 150, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 43, - "end": 241, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../tripleref.d.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": "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": [ - [ - 2, - "../first_part1.ts" - ], - [ - 4, - "../first_part2.ts" - ], - [ - 5, - "../first_part3.ts" - ] - ], - "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", - "size": 3154 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:01:11 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:01:12 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:13 AM] Building project '/src/first/tsconfig.json'... - -[12:01:21 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: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:01:23 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated -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/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.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-166) -var s = "Hola, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (43-241) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 166, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 43, - "end": 241, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../tripleref.d.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": "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": [ - [ - 2, - "../first_part1.ts" - ], - [ - 4, - "../first_part2.ts" - ], - [ - 5, - "../first_part3.ts" - ] - ], - "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", - "size": 3225 -} - 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 deleted file mode 100644 index 6de3b218ac72a..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js +++ /dev/null @@ -1,1516 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/src/second/second_part1.ts] -/// -const second_part1Const = new secondsecond_part1(); -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"); - } -} - - -//// [/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": [] -} - -//// [/src/third/third_part1.ts] -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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:20 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:22 AM] Building project '/src/first/tsconfig.json'... - -[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:33 AM] Building project '/src/second/tsconfig.json'... - -[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:44 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -/// -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>/// ->>>declare const second_part1Const: secondsecond_part1; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1 >/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) -4 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) -5 >Emitted(2, 52) Source(2, 51) + SourceIndex(0) -6 >Emitted(2, 53) Source(2, 52) + SourceIndex(0) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(3, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(3, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(4, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 19) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 20) Source(7, 12) + SourceIndex(0) -4 >Emitted(5, 21) Source(7, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(6, 2) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1 >/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(1, 22) Source(2, 24) + SourceIndex(0) -4 >Emitted(1, 25) Source(2, 27) + SourceIndex(0) -5 >Emitted(1, 29) Source(2, 31) + SourceIndex(0) -6 >Emitted(1, 47) Source(2, 49) + SourceIndex(0) -7 >Emitted(1, 49) Source(2, 51) + SourceIndex(0) -8 >Emitted(1, 50) Source(2, 52) + SourceIndex(0) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(2, 6) Source(7, 12) + SourceIndex(0) -4 >Emitted(2, 7) Source(13, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(7, 11) + SourceIndex(0) -3 >Emitted(3, 13) Source(7, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(4, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(4, 14) Source(8, 14) + SourceIndex(0) -3 >Emitted(4, 15) Source(8, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(5, 9) Source(9, 9) + SourceIndex(0) -2 >Emitted(5, 16) Source(9, 16) + SourceIndex(0) -3 >Emitted(5, 17) Source(9, 17) + SourceIndex(0) -4 >Emitted(5, 20) Source(9, 20) + SourceIndex(0) -5 >Emitted(5, 21) Source(9, 21) + SourceIndex(0) -6 >Emitted(5, 30) Source(9, 30) + SourceIndex(0) -7 >Emitted(5, 31) Source(9, 31) + SourceIndex(0) -8 >Emitted(5, 32) Source(9, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(7, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(7, 6) Source(12, 6) + SourceIndex(0) -3 >Emitted(7, 8) Source(12, 8) + SourceIndex(0) -4 >Emitted(7, 9) Source(12, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(8, 4) Source(7, 11) + SourceIndex(0) -4 >Emitted(8, 5) Source(7, 12) + SourceIndex(0) -5 >Emitted(8, 10) Source(7, 11) + SourceIndex(0) -6 >Emitted(8, 11) Source(7, 12) + SourceIndex(0) -7 >Emitted(8, 19) Source(13, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(10, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(11, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(12, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(12, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(12, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(13, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(13, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(13, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(13, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(13, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(13, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(13, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(13, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(14, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(15, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(15, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(16, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(16, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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 { }","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-320) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -reference: (0-49):: ../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (50-196) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 320, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 49, - "kind": "reference", - "data": "../second/tripleRef.d.ts" - }, - { - "pos": 50, - "end": 196, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/tripleref.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../second/tripleref.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ] - ] - ], - "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", - "size": 3300 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2609 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:50 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:00:52 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:01 AM] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:02 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2682 -} - 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 deleted file mode 100644 index 01c976f258bcf..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js +++ /dev/null @@ -1,1439 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - -//// [/src/first/first_part2.ts] -console.log(f()); - - -//// [/src/first/first_part3.ts] -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": [] -} - -//// [/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"); - } -} - - -//// [/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": [] -} - -//// [/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 - } - ] -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:19 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[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:21 AM] Building project '/src/first/tsconfig.json'... - -[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:32 AM] Building project '/src/second/tsconfig.json'... - -[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:43 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/2/second-output.d.ts] -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"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"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) -4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) -3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) -4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"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.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -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) -3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^-> -1 > - > -2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -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) -3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^-> -1-> -1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -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) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) ---- ->>>//# 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; };","-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] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -text: (0-270) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -text: (0-93) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 270, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 93, - "kind": "text" - } - ], - "hash": "-16005591226-declare namespace N {\n}\ndeclare namespace N {\n}\ndeclare class C {\n doSomething(): void;\n}\n//# sourceMappingURL=second-output.d.ts.map", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "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": "-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": [ - [ - 2, - "../second/second_part1.ts" - ], - [ - 3, - "../second/second_part2.ts" - ] - ], - "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", - "size": 2704 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# 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;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + 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":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:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-104) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 104, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2609 -} - - - -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); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:00:49 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:00:51 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_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 file 'src/third/thirdjs/output/third-output.tsbuildinfo' does not exist - -[12:01:01 AM] Building project '/src/third/tsconfig.json'... - -src/third/tsconfig.json:18:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -18 { -   ~ -19 "path": "../first", -  ~~~~~~~~~~~~~~~~~~~~~~~~~ -20 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -21 }, -  ~~~~~ - -src/third/tsconfig.json:22:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - -22 { -   ~ -23 "path": "../second", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~ -24 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -25 } -  ~~~~~ - - -Found 2 errors. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# 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,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.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^-> -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + 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":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] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-120) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-149) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 120, - "kind": "text" - } - ], - "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", - "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\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 149, - "kind": "text" - } - ], - "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", - "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\"}" - } - }, - "program": { - "fileNames": [ - "../../../lib/lib.d.ts", - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "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": "-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": [ - [ - [ - 2, - 4 - ], - [ - "../first_part1.ts", - "../first_part2.ts", - "../first_part3.ts" - ] - ] - ], - "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", - "size": 2682 -} - 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 deleted file mode 100644 index 4c58b13664b01..0000000000000 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js +++ /dev/null @@ -1,566 +0,0 @@ -currentDirectory:: /user/username/projects 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/sample1/core/tsconfig.json] -{ - "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 - } - ] -} - -//// [/user/username/projects/sample1/logic/index.ts] -function bar() { return foo() + 1 }; - - -/a/lib/tsc.js -b -w sample1/logic -Output:: ->> Screen clear -[12:00:29 AM] Starting compilation in watch mode... - -sample1/logic/tsconfig.json:9:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - - 9 { -   ~ -10 "path": "../core", -  ~~~~~~~~~~~~~~~~~~~~~~~~ -11 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -12 } -  ~~~~~ - -[12:00:41 AM] Found 1 error. Watching for file changes. - - - -//// [/user/username/projects/sample1/core/index.js] -function foo() { return 10; } - - -//// [/user/username/projects/sample1/core/index.d.ts] -declare function foo(): number; - - -//// [/user/username/projects/sample1/core/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":30,"kind":"text"}],"hash":"3762995390-function foo() { return 10; }\n"},"dts":{"sections":[{"pos":0,"end":32,"kind":"text"}],"hash":"517738360-declare function foo(): number;\n"}},"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./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; }","5450201652-function foo() { return 10; }"],"root":[2],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"517738360-declare function foo(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./index.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 30, - "kind": "text" - } - ], - "hash": "3762995390-function foo() { return 10; }\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 32, - "kind": "text" - } - ], - "hash": "517738360-declare function foo(): number;\n" - } - }, - "program": { - "fileNames": [ - "../../../../../a/lib/lib.d.ts", - "./index.ts" - ], - "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; }", - "./index.ts": "5450201652-function foo() { return 10; }" - }, - "root": [ - [ - 2, - "./index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "outFile": "./index.js" - }, - "outSignature": "517738360-declare function foo(): number;\n", - "latestChangedDtsFile": "./index.d.ts" - }, - "version": "FakeTSVersion", - "size": 978 -} - -//// [/user/username/projects/sample1/core/index.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/sample1/core/index.js ----------------------------------------------------------------------- -text: (0-30) -function foo() { return 10; } - -====================================================================== -====================================================================== -File:: /user/username/projects/sample1/core/index.d.ts ----------------------------------------------------------------------- -text: (0-32) -declare function foo(): number; - -====================================================================== - - -FsWatches:: -/user/username/projects/sample1/core/index.ts: *new* - {} -/user/username/projects/sample1/core/tsconfig.json: *new* - {} -/user/username/projects/sample1/logic/index.ts: *new* - {} -/user/username/projects/sample1/logic/tsconfig.json: *new* - {} - -FsWatchesRecursive:: -/user/username/projects/sample1/core: *new* - {} -/user/username/projects/sample1/logic: *new* - {} - -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 -/user/username/projects/sample1/core/index.ts - -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 structureReused: Not -Program files:: -/a/lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/logic/index.ts - -No cached semantic diagnostics in the builder:: - -No shapes updated in the builder:: - -exitCode:: ExitStatus.undefined - -Change:: Make non local change and build core - -Input:: -//// [/user/username/projects/sample1/core/index.ts] -function foo() { return 10; } -function myFunc() { return 10; } - - -Timeout callback:: count: 1 -1: timerToBuildInvalidatedProject *new* - -Before running Timeout callback:: count: 1 -1: timerToBuildInvalidatedProject - -After running Timeout callback:: count: 1 -Output:: ->> Screen clear -[12:00:44 AM] File change detected. Starting incremental compilation... - - - -//// [/user/username/projects/sample1/core/index.js] -function foo() { return 10; } -function myFunc() { return 10; } - - -//// [/user/username/projects/sample1/core/index.d.ts] -declare function foo(): number; -declare function myFunc(): number; - - -//// [/user/username/projects/sample1/core/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":63,"kind":"text"}],"hash":"-6033649947-function foo() { return 10; }\nfunction myFunc() { return 10; }\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"text"}],"hash":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n"}},"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./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; }","-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }"],"root":[2],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./index.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 63, - "kind": "text" - } - ], - "hash": "-6033649947-function foo() { return 10; }\nfunction myFunc() { return 10; }\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 67, - "kind": "text" - } - ], - "hash": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n" - } - }, - "program": { - "fileNames": [ - "../../../../../a/lib/lib.d.ts", - "./index.ts" - ], - "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; }", - "./index.ts": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }" - }, - "root": [ - [ - 2, - "./index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "outFile": "./index.js" - }, - "outSignature": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", - "latestChangedDtsFile": "./index.d.ts" - }, - "version": "FakeTSVersion", - "size": 1122 -} - -//// [/user/username/projects/sample1/core/index.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/sample1/core/index.js ----------------------------------------------------------------------- -text: (0-63) -function foo() { return 10; } -function myFunc() { return 10; } - -====================================================================== -====================================================================== -File:: /user/username/projects/sample1/core/index.d.ts ----------------------------------------------------------------------- -text: (0-67) -declare function foo(): number; -declare function myFunc(): number; - -====================================================================== - - -Timeout callback:: count: 1 -2: timerToBuildInvalidatedProject *new* - - -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 -/user/username/projects/sample1/core/index.ts - -No cached semantic diagnostics in the builder:: - -No shapes updated in the builder:: - -exitCode:: ExitStatus.undefined - -Change:: Build logic - -Input:: - -Before running Timeout callback:: count: 1 -2: timerToBuildInvalidatedProject - -After running Timeout callback:: count: 0 -Output:: -sample1/logic/tsconfig.json:9:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - - 9 { -   ~ -10 "path": "../core", -  ~~~~~~~~~~~~~~~~~~~~~~~~ -11 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -12 } -  ~~~~~ - -[12:01:01 AM] Found 1 error. 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 structureReused: Not -Program files:: -/a/lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/logic/index.ts - -No cached semantic diagnostics in the builder:: - -No shapes updated in the builder:: - -exitCode:: ExitStatus.undefined - -Change:: Make local change and build core - -Input:: -//// [/user/username/projects/sample1/core/index.ts] -function foo() { return 10; } -function myFunc() { return 100; } - - -Timeout callback:: count: 1 -3: timerToBuildInvalidatedProject *new* - -Before running Timeout callback:: count: 1 -3: timerToBuildInvalidatedProject - -After running Timeout callback:: count: 1 -Output:: ->> Screen clear -[12:01:05 AM] File change detected. Starting incremental compilation... - - - -//// [/user/username/projects/sample1/core/index.js] -function foo() { return 10; } -function myFunc() { return 100; } - - -//// [/user/username/projects/sample1/core/index.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./index.ts"],"js":{"sections":[{"pos":0,"end":64,"kind":"text"}],"hash":"-5849092235-function foo() { return 10; }\nfunction myFunc() { return 100; }\n"},"dts":{"sections":[{"pos":0,"end":67,"kind":"text"}],"hash":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n"}},"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./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; }","-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }"],"root":[2],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} - -//// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./index.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 64, - "kind": "text" - } - ], - "hash": "-5849092235-function foo() { return 10; }\nfunction myFunc() { return 100; }\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 67, - "kind": "text" - } - ], - "hash": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n" - } - }, - "program": { - "fileNames": [ - "../../../../../a/lib/lib.d.ts", - "./index.ts" - ], - "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; }", - "./index.ts": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }" - }, - "root": [ - [ - 2, - "./index.ts" - ] - ], - "options": { - "composite": true, - "declaration": true, - "outFile": "./index.js" - }, - "outSignature": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", - "latestChangedDtsFile": "./index.d.ts" - }, - "version": "FakeTSVersion", - "size": 1124 -} - -//// [/user/username/projects/sample1/core/index.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/sample1/core/index.js ----------------------------------------------------------------------- -text: (0-64) -function foo() { return 10; } -function myFunc() { return 100; } - -====================================================================== -====================================================================== -File:: /user/username/projects/sample1/core/index.d.ts ----------------------------------------------------------------------- -text: (0-67) -declare function foo(): number; -declare function myFunc(): number; - -====================================================================== - - -Timeout callback:: count: 1 -4: timerToBuildInvalidatedProject *new* - - -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 -/user/username/projects/sample1/core/index.ts - -No cached semantic diagnostics in the builder:: - -No shapes updated in the builder:: - -exitCode:: ExitStatus.undefined - -Change:: Build logic - -Input:: - -Before running Timeout callback:: count: 1 -4: timerToBuildInvalidatedProject - -After running Timeout callback:: count: 0 -Output:: -sample1/logic/tsconfig.json:9:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - - 9 { -   ~ -10 "path": "../core", -  ~~~~~~~~~~~~~~~~~~~~~~~~ -11 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -12 } -  ~~~~~ - -[12:01:19 AM] Found 1 error. 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 structureReused: Not -Program files:: -/a/lib/lib.d.ts -/user/username/projects/sample1/core/index.d.ts -/user/username/projects/sample1/logic/index.ts - -No cached semantic diagnostics in the builder:: - -No shapes updated in the builder:: - -exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-outFile-and-non-local-change.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-outFile-and-non-local-change.js new file mode 100644 index 0000000000000..168d3989705c0 --- /dev/null +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-outFile-and-non-local-change.js @@ -0,0 +1,450 @@ +currentDirectory:: /user/username/projects 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/sample1/core/tsconfig.json] +{ + "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": { + "composite": true, + "declaration": true, + "outFile": "index.js" + }, + "references": [ + { + "path": "../core" + } + ] +} + +//// [/user/username/projects/sample1/logic/index.ts] +function bar() { return foo() + 1 }; + + +/a/lib/tsc.js -b -w sample1/logic +Output:: +>> Screen clear +[12:00:29 AM] Starting compilation in watch mode... + +[12:00:48 AM] Found 0 errors. Watching for file changes. + + + +//// [/user/username/projects/sample1/core/index.js] +function foo() { return 10; } + + +//// [/user/username/projects/sample1/core/index.d.ts] +declare function foo(): number; + + +//// [/user/username/projects/sample1/core/index.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./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; }","5450201652-function foo() { return 10; }"],"root":[2],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"517738360-declare function foo(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../../a/lib/lib.d.ts", + "./index.ts" + ], + "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; }", + "./index.ts": "5450201652-function foo() { return 10; }" + }, + "root": [ + [ + 2, + "./index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "outFile": "./index.js" + }, + "outSignature": "517738360-declare function foo(): number;\n", + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 697 +} + +//// [/user/username/projects/sample1/logic/index.js] +function bar() { return foo() + 1; } +; + + +//// [/user/username/projects/sample1/logic/index.d.ts] +declare function bar(): number; + + +//// [/user/username/projects/sample1/logic/index.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","./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; }","517738360-declare function foo(): number;\n","5542925109-function bar() { return foo() + 1 };"],"root":[3],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"1113083433-declare function bar(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/index.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../../a/lib/lib.d.ts", + "../core/index.d.ts", + "./index.ts" + ], + "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; }", + "../core/index.d.ts": "517738360-declare function foo(): number;\n", + "./index.ts": "5542925109-function bar() { return foo() + 1 };" + }, + "root": [ + [ + 3, + "./index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "outFile": "./index.js" + }, + "outSignature": "1113083433-declare function bar(): number;\n", + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 772 +} + + +FsWatches:: +/user/username/projects/sample1/core/index.ts: *new* + {} +/user/username/projects/sample1/core/tsconfig.json: *new* + {} +/user/username/projects/sample1/logic/index.ts: *new* + {} +/user/username/projects/sample1/logic/tsconfig.json: *new* + {} + +FsWatchesRecursive:: +/user/username/projects/sample1/core: *new* + {} +/user/username/projects/sample1/logic: *new* + {} + +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 +/user/username/projects/sample1/core/index.ts + +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: { + "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 +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/logic/index.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.undefined + +Change:: Make non local change and build core + +Input:: +//// [/user/username/projects/sample1/core/index.ts] +function foo() { return 10; } +function myFunc() { return 10; } + + +Timeout callback:: count: 1 +1: timerToBuildInvalidatedProject *new* + +Before running Timeout callback:: count: 1 +1: timerToBuildInvalidatedProject + +After running Timeout callback:: count: 1 +Output:: +>> Screen clear +[12:00:51 AM] File change detected. Starting incremental compilation... + + + +//// [/user/username/projects/sample1/core/index.js] +function foo() { return 10; } +function myFunc() { return 10; } + + +//// [/user/username/projects/sample1/core/index.d.ts] +declare function foo(): number; +declare function myFunc(): number; + + +//// [/user/username/projects/sample1/core/index.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./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; }","-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }"],"root":[2],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../../a/lib/lib.d.ts", + "./index.ts" + ], + "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; }", + "./index.ts": "-3957203077-function foo() { return 10; }\nfunction myFunc() { return 10; }" + }, + "root": [ + [ + 2, + "./index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "outFile": "./index.js" + }, + "outSignature": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 769 +} + + +Timeout callback:: count: 1 +2: timerToBuildInvalidatedProject *new* + + +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 +/user/username/projects/sample1/core/index.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.undefined + +Change:: Build logic + +Input:: + +Before running Timeout callback:: count: 1 +2: timerToBuildInvalidatedProject + +After running Timeout callback:: count: 0 +Output:: +[12:01:15 AM] Found 0 errors. Watching for file changes. + + + +//// [/user/username/projects/sample1/logic/index.js] file written with same contents +//// [/user/username/projects/sample1/logic/index.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../core/index.d.ts","./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; }","2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","5542925109-function bar() { return foo() + 1 };"],"root":[3],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"1113083433-declare function bar(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/logic/index.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../../a/lib/lib.d.ts", + "../core/index.d.ts", + "./index.ts" + ], + "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; }", + "../core/index.d.ts": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", + "./index.ts": "5542925109-function bar() { return foo() + 1 };" + }, + "root": [ + [ + 3, + "./index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "outFile": "./index.js" + }, + "outSignature": "1113083433-declare function bar(): number;\n", + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 809 +} + + + +Program root files: [ + "/user/username/projects/sample1/logic/index.ts" +] +Program options: { + "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 +/user/username/projects/sample1/core/index.d.ts +/user/username/projects/sample1/logic/index.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.undefined + +Change:: Make local change and build core + +Input:: +//// [/user/username/projects/sample1/core/index.ts] +function foo() { return 10; } +function myFunc() { return 100; } + + +Timeout callback:: count: 1 +3: timerToBuildInvalidatedProject *new* + +Before running Timeout callback:: count: 1 +3: timerToBuildInvalidatedProject + +After running Timeout callback:: count: 0 +Output:: +>> Screen clear +[12:01:19 AM] File change detected. Starting incremental compilation... + +[12:01:31 AM] Found 0 errors. Watching for file changes. + + + +//// [/user/username/projects/sample1/core/index.js] +function foo() { return 10; } +function myFunc() { return 100; } + + +//// [/user/username/projects/sample1/core/index.tsbuildinfo] +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./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; }","-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }"],"root":[2],"options":{"composite":true,"declaration":true,"outFile":"./index.js"},"outSignature":"2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n","latestChangedDtsFile":"./index.d.ts"},"version":"FakeTSVersion"} + +//// [/user/username/projects/sample1/core/index.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../../../../a/lib/lib.d.ts", + "./index.ts" + ], + "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; }", + "./index.ts": "-6034018805-function foo() { return 10; }\nfunction myFunc() { return 100; }" + }, + "root": [ + [ + 2, + "./index.ts" + ] + ], + "options": { + "composite": true, + "declaration": true, + "outFile": "./index.js" + }, + "outSignature": "2172043225-declare function foo(): number;\ndeclare function myFunc(): number;\n", + "latestChangedDtsFile": "./index.d.ts" + }, + "version": "FakeTSVersion", + "size": 770 +} + +//// [/user/username/projects/sample1/logic/index.tsbuildinfo] file changed its modified time + + +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 +/user/username/projects/sample1/core/index.ts + +No cached semantic diagnostics in the builder:: + +No shapes updated in the builder:: + +exitCode:: ExitStatus.undefined + +Change:: Build logic + +Input:: + +Before running Timeout callback:: count: 0 + +After running Timeout callback:: count: 0 + + +exitCode:: ExitStatus.undefined diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile-discrepancies.js b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile-discrepancies.js index 21145bee62a07..e39854108f896 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-incremental-with-outFile-discrepancies.js @@ -6,25 +6,6 @@ Incremental build contains the dts build section from before TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "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; };", @@ -56,36 +37,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "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; };", @@ -117,91 +68,6 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== 7:: no-change-run Clean build tsbuildinfo will have compilerOptions {} Incremental build will detect that it doesnt need to rebuild so tsbuild info is from before which has option declaration and declarationMap @@ -210,25 +76,6 @@ Incremental build contains the dts build section from before TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "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; };", @@ -260,36 +107,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "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; };", @@ -320,89 +137,4 @@ IncrementalBuild: } }, "version": "FakeTSVersion" -} -File: /src/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== \ No newline at end of file +} \ No newline at end of file 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 5a703bbb32234..8fdc4924f846d 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 @@ -97,63 +97,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -189,7 +136,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2025 + "size": 884 } @@ -261,31 +208,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"mapHash":"-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -322,7 +248,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2473 + "size": 901 } @@ -390,30 +316,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -449,7 +355,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2025 + "size": 884 } @@ -504,91 +410,10 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -625,7 +450,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2334 + "size": 903 } @@ -684,41 +509,10 @@ declare module "d" { {"version":3,"file":"outFile.d.ts","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -756,7 +550,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2740 + "size": 925 } @@ -862,63 +656,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -954,7 +695,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2028 + "size": 885 } @@ -997,92 +738,10 @@ No shapes updated in the builder:: //// [/src/outFile.d.ts] file written with same contents //// [/src/outFile.d.ts.map] file written with same contents //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1120,7 +779,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2743 + "size": 926 } @@ -1224,63 +883,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1317,7 +923,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2561 + "size": 908 } @@ -1389,31 +995,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"mapHash":"-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js","sourceMap":true}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1450,7 +1035,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2476 + "size": 902 } @@ -1518,30 +1103,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1577,7 +1142,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { } }, "version": "FakeTSVersion", - "size": 2028 + "size": 885 } @@ -1620,92 +1185,10 @@ No shapes updated in the builder:: //// [/src/outFile.d.ts] file written with same contents //// [/src/outFile.d.ts.map] file written with same contents //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"}},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1743,7 +1226,7 @@ declare module "d" { } }, "version": "FakeTSVersion", - "size": 2743 + "size": 926 } diff --git a/tests/baselines/reference/tsc/incremental/different-options-with-outFile-discrepancies.js b/tests/baselines/reference/tsc/incremental/different-options-with-outFile-discrepancies.js index 19bc029bae100..c6e40e5d0a283 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-outFile-discrepancies.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-outFile-discrepancies.js @@ -4,35 +4,6 @@ Incremental build will detect that it doesnt need to rebuild so tsbuild info is TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -68,35 +39,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -137,25 +79,6 @@ Incremental build info has js section from old build TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -191,35 +114,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -252,112 +146,12 @@ IncrementalBuild: }, "version": "FakeTSVersion" } -File: /src/outfile.tsbuildinfo.baseline.txt -CleanBuild: -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== -IncrementalBuild: -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== 9:: with declaration should not emit anything Clean build tsbuildinfo will have compilerOptions with composite and declaration Incremental build will detect that it doesnt need to rebuild so tsbuild info is from before which has option composite only TsBuild info text without affectedFilesPendingEmit:: /src/outfile.tsbuildinfo.readable.baseline.txt:: CleanBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", @@ -393,35 +187,6 @@ CleanBuild: } IncrementalBuild: { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "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; };", 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 ff44dc9b5e58e..5a63c62a53519 100644 --- a/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js +++ b/tests/baselines/reference/tsc/incremental/different-options-with-outFile.js @@ -112,91 +112,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-864) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -235,7 +154,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2615 + "size": 1184 } @@ -307,41 +226,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"mapHash":"-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "32120698435-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-9121204548-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAzB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -381,7 +269,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3063 + "size": 1201 } @@ -449,40 +337,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -521,7 +379,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2615 + "size": 1184 } @@ -651,41 +509,10 @@ declare module "d" { {"version":3,"file":"outFile.d.ts","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -726,7 +553,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3040 + "size": 1225 } @@ -780,40 +607,10 @@ declare module "d" { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":864,"kind":"text"}],"hash":"31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-18487752940-export const a = 10;const aLocal = 10;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 864, - "kind": "text" - } - ], - "hash": "31952994086-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 10;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -852,7 +649,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2615 + "size": 1184 } @@ -994,91 +791,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-865) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.a = void 0; - exports.a = 10; - var aLocal = 100; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.b = void 0; - exports.b = 10; - var bLocal = 10; -}); -define("c", ["require", "exports", "a"], function (require, exports, a_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.c = void 0; - exports.c = a_1.a; -}); -define("d", ["require", "exports", "b"], function (require, exports, b_1) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.d = void 0; - exports.d = b_1.b; -}); - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-192) -declare module "a" { - export const a = 10; -} -declare module "b" { - export const b = 10; -} -declare module "c" { - export const c = 10; -} -declare module "d" { - export const d = 10; -} - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1117,7 +833,7 @@ declare module "d" { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 2618 + "size": 1185 } @@ -1222,40 +938,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9 //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"inlineSourceMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-33247521228-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0RmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb2plY3QvYS50cyIsInByb2plY3QvYi50cyIsInByb2plY3QvYy50cyIsInByb2plY3QvZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0lBQWEsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsR0FBRyxDQUFDOzs7Ozs7SUNBMUIsUUFBQSxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQUEsSUFBTSxNQUFNLEdBQUcsRUFBRSxDQUFDOzs7Ozs7SUNBRCxRQUFBLENBQUMsR0FBRyxLQUFDLENBQUM7Ozs7OztJQ0FOLFFBQUEsQ0FBQyxHQUFHLEtBQUMsQ0FBQyJ9" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1295,7 +981,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3151 + "size": 1208 } @@ -1367,41 +1053,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { {"version":3,"file":"outFile.js","sourceRoot":"","sources":["project/a.ts","project/b.ts","project/c.ts","project/d.ts"],"names":[],"mappings":";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"mapHash":"-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"hash":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1441,7 +1096,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3066 + "size": 1202 } @@ -1536,41 +1191,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"hash":"-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js"},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-41309964298-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1610,7 +1234,7 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3024 + "size": 1207 } @@ -1681,42 +1305,10 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { //// [/src/outFile.js.map] file written with same contents //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"js":{"sections":[{"pos":0,"end":865,"kind":"text"}],"mapHash":"-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}","hash":"-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map"},"dts":{"sections":[{"pos":0,"end":192,"kind":"text"}],"mapHash":"-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}","hash":"-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts","./project/c.ts","./project/d.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","-17390360476-export const a = 10;const aLocal = 100;","-6189287562-export const b = 10;const bLocal = 10;","3248317647-import { a } from \"./a\";export const c = a;","-19615769517-import { b } from \"./b\";export const d = b;"],"root":[[2,5]],"options":{"composite":true,"declarationMap":true,"module":2,"outFile":"./outFile.js","sourceMap":true},"outSignature":"-25657667359-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts", - "./project/c.ts", - "./project/d.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 865, - "kind": "text" - } - ], - "hash": "-40236925677-define(\"a\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.a = void 0;\n exports.a = 10;\n var aLocal = 100;\n});\ndefine(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.b = void 0;\n exports.b = 10;\n var bLocal = 10;\n});\ndefine(\"c\", [\"require\", \"exports\", \"a\"], function (require, exports, a_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.c = void 0;\n exports.c = a_1.a;\n});\ndefine(\"d\", [\"require\", \"exports\", \"b\"], function (require, exports, b_1) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.d = void 0;\n exports.d = b_1.b;\n});\n//# sourceMappingURL=outFile.js.map", - "mapHash": "-5541118281-{\"version\":3,\"file\":\"outFile.js\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";;;;IAAa,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,GAAG,CAAC;;;;;;ICA1B,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;;ICAD,QAAA,CAAC,GAAG,KAAC,CAAC;;;;;;ICAN,QAAA,CAAC,GAAG,KAAC,CAAC\"}" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 192, - "kind": "text" - } - ], - "hash": "-34588067782-declare module \"a\" {\n export const a = 10;\n}\ndeclare module \"b\" {\n export const b = 10;\n}\ndeclare module \"c\" {\n export const c = 10;\n}\ndeclare module \"d\" {\n export const d = 10;\n}\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "-4599397025-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\",\"project/c.ts\",\"project/d.ts\"],\"names\":[],\"mappings\":\";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICAI,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC;;;ICAnB,MAAM,CAAC,MAAM,CAAC,KAAI,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -1757,6 +1349,6 @@ define("d", ["require", "exports", "b"], function (require, exports, b_1) { "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 3472 + "size": 1224 } 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 5733a5abb5bcf..82fc73e8c15e5 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 @@ -49,55 +49,10 @@ var y = 10; //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts"],"js":{"sections":[{"pos":0,"end":24,"kind":"text"}],"hash":"-5596269010-var x = 10;\nvar y = 10;\n"},"dts":{"sections":[{"pos":0,"end":44,"kind":"text"}],"hash":"-2781996726-declare const x = 10;\ndeclare const y = 10;\n"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5029505981-const x = 10;","2026006654-const y = 10;"],"root":[2,3],"options":{"composite":true,"declaration":true,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-2781996726-declare const x = 10;\ndeclare const y = 10;\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} - -//// [/src/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/outFile.js ----------------------------------------------------------------------- -text: (0-24) -var x = 10; -var y = 10; - -====================================================================== -====================================================================== -File:: /src/outFile.d.ts ----------------------------------------------------------------------- -text: (0-44) -declare const x = 10; -declare const y = 10; - -====================================================================== +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5029505981-const x = 10;","2026006654-const y = 10;"],"root":[2,3],"options":{"composite":true,"declaration":true,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-2781996726-declare const x = 10;\ndeclare const y = 10;\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 24, - "kind": "text" - } - ], - "hash": "-5596269010-var x = 10;\nvar y = 10;\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 44, - "kind": "text" - } - ], - "hash": "-2781996726-declare const x = 10;\ndeclare const y = 10;\n" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -129,7 +84,7 @@ declare const y = 10; "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1157 + "size": 837 } @@ -177,39 +132,10 @@ declare const y = 10; {"version":3,"file":"outFile.d.ts","sourceRoot":"","sources":["project/a.ts","project/b.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC;ACAb,QAAA,MAAM,CAAC,KAAK,CAAC"} //// [/src/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./project","sourceFiles":["./project/a.ts","./project/b.ts"],"js":{"sections":[{"pos":0,"end":24,"kind":"text"}],"hash":"-5596269010-var x = 10;\nvar y = 10;\n"},"dts":{"sections":[{"pos":0,"end":44,"kind":"text"}],"mapHash":"12253058536-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC;ACAb,QAAA,MAAM,CAAC,KAAK,CAAC\"}","hash":"-2941022653-declare const x = 10;\ndeclare const y = 10;\n//# sourceMappingURL=outFile.d.ts.map"}},"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5029505981-const x = 10;","2026006654-const y = 10;"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-2781996726-declare const x = 10;\ndeclare const y = 10;\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../lib/lib.d.ts","./project/a.ts","./project/b.ts"],"fileInfos":["3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","5029505981-const x = 10;","2026006654-const y = 10;"],"root":[2,3],"options":{"composite":true,"declaration":true,"declarationMap":true,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-2781996726-declare const x = 10;\ndeclare const y = 10;\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} -//// [/src/outFile.tsbuildinfo.baseline.txt] file written with same contents //// [/src/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./project", - "sourceFiles": [ - "./project/a.ts", - "./project/b.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 24, - "kind": "text" - } - ], - "hash": "-5596269010-var x = 10;\nvar y = 10;\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 44, - "kind": "text" - } - ], - "hash": "-2941022653-declare const x = 10;\ndeclare const y = 10;\n//# sourceMappingURL=outFile.d.ts.map", - "mapHash": "12253058536-{\"version\":3,\"file\":\"outFile.d.ts\",\"sourceRoot\":\"\",\"sources\":[\"project/a.ts\",\"project/b.ts\"],\"names\":[],\"mappings\":\"AAAA,QAAA,MAAM,CAAC,KAAK,CAAC;ACAb,QAAA,MAAM,CAAC,KAAK,CAAC\"}" - } - }, "program": { "fileNames": [ "../lib/lib.d.ts", @@ -242,6 +168,6 @@ declare const y = 10; "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1440 + "size": 859 } 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 deleted file mode 100644 index d65278aa4edf9..0000000000000 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-doesnt-set-outFile.js +++ /dev/null @@ -1,134 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/primary/a.ts] -export { }; - -//// [/primary/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../someProj", - "prepend": true - } - ] -} - -//// [/someProj/b.ts] -const x = 100; - -//// [/someProj/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [] -} - - - -Output:: -/lib/tsc --p /primary/tsconfig.json --ignoreDeprecations 5.0 -primary/tsconfig.json:7:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - - 7 { -   ~ - 8 "path": "../someProj", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 9 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -10 } -  ~~~~~ - -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 } -  ~~~~~ - - -Found 2 errors in the same file, starting at: primary/tsconfig.json:7 - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/primary/bin/a.d.ts] -export {}; - - -//// [/primary/bin/a.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - - -//// [/primary/bin/tsconfig.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":"-3531955686-export { };","signature":"-3531856636-export {};\n"}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} - -//// [/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../a.ts" - ], - "fileInfos": { - "../../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 - }, - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" - }, - "version": "-3531955686-export { };", - "signature": "-3531856636-export {};\n" - } - }, - "root": [ - [ - 2, - "../a.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "latestChangedDtsFile": "./a.d.ts" - }, - "version": "FakeTSVersion", - "size": 785 -} - 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 deleted file mode 100644 index 4250b39e222ac..0000000000000 --- a/tests/baselines/reference/tsc/projectReferencesConfig/errors-when-a-prepended-project-reference-output-doesnt-exist.js +++ /dev/null @@ -1,151 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Input:: -//// [/lib/lib.d.ts] -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -declare const console: { log(msg: any): void; }; - -//// [/primary/a.ts] -const y = x; - -//// [/primary/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "outDir": "bin" - }, - "references": [ - { - "path": "../someProj", - "prepend": true - } - ] -} - -//// [/someProj/b.ts] -const x = 100; - -//// [/someProj/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "outDir": "bin", - "outFile": "foo.js" - }, - "references": [] -} - - - -Output:: -/lib/tsc --p /primary/tsconfig.json --ignoreDeprecations 5.0 -error TS6053: File '/someProj/foo.d.ts' not found. - 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:5 -  7 { -    ~ -  8 "path": "../someProj", -   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -  9 "prepend": true -   ~~~~~~~~~~~~~~~~~~~~~ - 10 } -   ~~~~~ - File is output from referenced project specified here. - -primary/tsconfig.json:7:5 - error TS5102: Option 'prepend' has been removed. Please remove it from your configuration. - - 7 { -   ~ - 8 "path": "../someProj", -  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 9 "prepend": true -  ~~~~~~~~~~~~~~~~~~~~~ -10 } -  ~~~~~ - -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 } -  ~~~~~ - - -Found 3 errors in the same file, starting at: primary/tsconfig.json:7 - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated - - -//// [/primary/bin/a.d.ts] -declare const y: any; - - -//// [/primary/bin/a.js] -var y = x; - - -//// [/primary/bin/tsconfig.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":"4096062741-const y = x;","signature":"-1874842468-declare const y: any;\n","affectsGlobalScope":true}],"root":[2],"options":{"composite":true,"outDir":"./"},"referencedMap":[],"exportedModulesMap":[],"latestChangedDtsFile":"./a.d.ts"},"version":"FakeTSVersion"} - -//// [/primary/bin/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../a.ts" - ], - "fileInfos": { - "../../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 - }, - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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": "4096062741-const y = x;", - "signature": "-1874842468-declare const y: any;\n", - "affectsGlobalScope": true - }, - "version": "4096062741-const y = x;", - "signature": "-1874842468-declare const y: any;\n", - "affectsGlobalScope": true - } - }, - "root": [ - [ - 2, - "../a.ts" - ] - ], - "options": { - "composite": true, - "outDir": "./" - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "latestChangedDtsFile": "./a.d.ts" - }, - "version": "FakeTSVersion", - "size": 822 -} - 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 c4b7814530a1d..51516f1dd7747 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 @@ -49,27 +49,10 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file1.ts","./file2.ts"],"js":{"sections":[{"pos":0,"end":406,"kind":"text"}],"hash":"-23721256875-define(\"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});\n"}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file1.ts", - "./file2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 406, - "kind": "text" - } - ], - "hash": "-23721256875-define(\"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});\n" - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -97,29 +80,9 @@ define("file2", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 1209 + "size": 612 } -//// [/users/username/projects/project/out.tsbuildinfo.baseline.txt] -====================================================================== -File:: /users/username/projects/project/out.js ----------------------------------------------------------------------- -text: (0-406) -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); - -====================================================================== - Program root files: [ "/users/username/projects/project/file1.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 eea81b349055d..60f79e824ee1c 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 @@ -54,27 +54,10 @@ define("file2", ["require", "exports"], function (require, exports) { //// [/users/username/projects/project/out.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file1.ts","./file2.ts"],"js":{"sections":[{"pos":0,"end":406,"kind":"text"}],"hash":"-23721256875-define(\"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});\n"}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","-10726455937-export const x = 10;","-13729954175-export const y = 20;"],"root":[2,3],"options":{"module":2,"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file1.ts", - "./file2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 406, - "kind": "text" - } - ], - "hash": "-23721256875-define(\"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});\n" - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -102,29 +85,9 @@ define("file2", ["require", "exports"], function (require, exports) { } }, "version": "FakeTSVersion", - "size": 1209 + "size": 612 } -//// [/users/username/projects/project/out.tsbuildinfo.baseline.txt] -====================================================================== -File:: /users/username/projects/project/out.js ----------------------------------------------------------------------- -text: (0-406) -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); - -====================================================================== - PolledWatches:: /users/username/projects/node_modules/@types: *new* diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js index 32c31bc5fa908..12c8db74047ca 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-incremental.js @@ -38,27 +38,10 @@ var y = 20; //// [/users/username/projects/project/out.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file1.ts","./file2.ts"],"js":{"sections":[{"pos":0,"end":24,"kind":"text"}],"hash":"-5596233073-var x = 10;\nvar y = 20;\n"}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","5029505981-const x = 10;","2026007743-const y = 20;"],"root":[2,3],"options":{"outFile":"./out.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","5029505981-const x = 10;","2026007743-const y = 20;"],"root":[2,3],"options":{"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file1.ts", - "./file2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 24, - "kind": "text" - } - ], - "hash": "-5596233073-var x = 10;\nvar y = 20;\n" - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -85,19 +68,9 @@ var y = 20; } }, "version": "FakeTSVersion", - "size": 766 + "size": 583 } -//// [/users/username/projects/project/out.tsbuildinfo.baseline.txt] -====================================================================== -File:: /users/username/projects/project/out.js ----------------------------------------------------------------------- -text: (0-24) -var x = 10; -var y = 20; - -====================================================================== - Program root files: [ "/users/username/projects/project/file1.ts", diff --git a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js index 6cc5f21db090a..b427cfc32913e 100644 --- a/tests/baselines/reference/tscWatch/incremental/with---out-watch.js +++ b/tests/baselines/reference/tscWatch/incremental/with---out-watch.js @@ -43,27 +43,10 @@ var y = 20; //// [/users/username/projects/project/out.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file1.ts","./file2.ts"],"js":{"sections":[{"pos":0,"end":24,"kind":"text"}],"hash":"-5596233073-var x = 10;\nvar y = 20;\n"}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","5029505981-const x = 10;","2026007743-const y = 20;"],"root":[2,3],"options":{"outFile":"./out.js"}},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./file1.ts","./file2.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; }","5029505981-const x = 10;","2026007743-const y = 20;"],"root":[2,3],"options":{"outFile":"./out.js"}},"version":"FakeTSVersion"} //// [/users/username/projects/project/out.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file1.ts", - "./file2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 24, - "kind": "text" - } - ], - "hash": "-5596233073-var x = 10;\nvar y = 20;\n" - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -90,19 +73,9 @@ var y = 20; } }, "version": "FakeTSVersion", - "size": 766 + "size": 583 } -//// [/users/username/projects/project/out.tsbuildinfo.baseline.txt] -====================================================================== -File:: /users/username/projects/project/out.js ----------------------------------------------------------------------- -text: (0-24) -var x = 10; -var y = 20; - -====================================================================== - PolledWatches:: /users/username/projects/node_modules/@types: *new* 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 c1b4eaa04ca5c..7104586c6a2e6 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 @@ -27,7 +27,7 @@ export class B {} { "compilerOptions": { "target": "es6", - "importsNotUsedAsValues": "error" + "verbatimModuleSyntax": true } } @@ -37,13 +37,15 @@ Output:: >> Screen clear [12:00:15 AM] Starting compilation in watch mode... -tsconfig.json:4:5 - error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. - Use 'verbatimModuleSyntax' instead. +error TS2318: Cannot find global type 'ClassDecoratorContext'. -4 "importsNotUsedAsValues": "error" -   ~~~~~~~~~~~~~~~~~~~~~~~~ +a.ts:2:2 - error TS1238: Unable to resolve signature of class decorator when called as an expression. + The runtime will invoke the decorator with 2 arguments, but the decorator expects 1. -[12:00:20 AM] Found 1 error. Watching for file changes. +2 @((_) => {}) +   ~~~~~~~~~~~ + +[12:00:20 AM] Found 2 errors. Watching for file changes. @@ -91,7 +93,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); }; -import './b'; +import { B } from './b'; let A = (() => { let _classDecorators = [((_) => { })]; let _classDescriptor; @@ -135,7 +137,7 @@ Program root files: [ ] Program options: { "target": 2, - "importsNotUsedAsValues": 2, + "verbatimModuleSyntax": true, "watch": true, "configFilePath": "/tsconfig.json" } @@ -145,7 +147,10 @@ Program files:: /a.ts /a/lib/lib.d.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/b.ts +/a.ts +/a/lib/lib.d.ts Shape signatures in builder refreshed for:: /b.ts (used version) @@ -161,7 +166,7 @@ Input:: { "compilerOptions": { "target": "es6", - "importsNotUsedAsValues": "error", + "verbatimModuleSyntax": true, "experimentalDecorators": true } } @@ -178,13 +183,7 @@ Output:: >> Screen clear [12:00:23 AM] File change detected. Starting incremental compilation... -tsconfig.json:4:5 - error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. - Use 'verbatimModuleSyntax' instead. - -4 "importsNotUsedAsValues": "error", -   ~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:30 AM] Found 1 error. Watching for file changes. +[12:00:30 AM] Found 0 errors. Watching for file changes. @@ -196,7 +195,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; -import './b'; +import { B } from './b'; let A = class A { constructor(p) { } }; @@ -215,7 +214,7 @@ Program root files: [ ] Program options: { "target": 2, - "importsNotUsedAsValues": 2, + "verbatimModuleSyntax": true, "experimentalDecorators": true, "watch": true, "configFilePath": "/tsconfig.json" @@ -226,7 +225,10 @@ Program files:: /a.ts /a/lib/lib.d.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/b.ts +/a.ts +/a/lib/lib.d.ts No shapes updated in the builder:: @@ -239,7 +241,7 @@ Input:: { "compilerOptions": { "target": "es6", - "importsNotUsedAsValues": "error", + "verbatimModuleSyntax": true, "experimentalDecorators": true, "emitDecoratorMetadata": true } @@ -257,13 +259,7 @@ Output:: >> Screen clear [12:00:33 AM] File change detected. Starting incremental compilation... -tsconfig.json:4:5 - error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. - Use 'verbatimModuleSyntax' instead. - -4 "importsNotUsedAsValues": "error", -   ~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:40 AM] Found 1 error. Watching for file changes. +[12:00:40 AM] Found 0 errors. Watching for file changes. @@ -298,7 +294,7 @@ Program root files: [ ] Program options: { "target": 2, - "importsNotUsedAsValues": 2, + "verbatimModuleSyntax": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "watch": true, @@ -310,7 +306,10 @@ Program files:: /a.ts /a/lib/lib.d.ts -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: +/b.ts +/a.ts +/a/lib/lib.d.ts No shapes updated in the builder:: 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-verbatimModuleSyntax-changes.js similarity index 58% rename from tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-importsNotUsedAsValues-changes.js rename to tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-verbatimModuleSyntax-changes.js index 1fe3a8fe3dcbb..60ae394320c9f 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-verbatimModuleSyntax-changes.js @@ -102,13 +102,13 @@ Shape signatures in builder refreshed for:: exitCode:: ExitStatus.undefined -Change:: Set to "remove" +Change:: Enable verbatimModuleSyntax Input:: //// [/user/username/projects/myproject/tsconfig.json] { "compilerOptions": { - "importsNotUsedAsValues": "remove" + "verbatimModuleSyntax": true } } @@ -124,12 +124,10 @@ Output:: >> Screen clear [12:00:32 AM] File change detected. Starting incremental compilation... -[12:00:39 AM] Found 0 errors. Watching for file changes. +[12:00:33 AM] Found 0 errors. Watching for file changes. -//// [/user/username/projects/myproject/a.js] file written with same contents -//// [/user/username/projects/myproject/b.js] file written with same contents Program root files: [ @@ -137,7 +135,7 @@ Program root files: [ "/user/username/projects/myproject/b.ts" ] Program options: { - "importsNotUsedAsValues": 0, + "verbatimModuleSyntax": true, "watch": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" } @@ -148,21 +146,18 @@ Program files:: /user/username/projects/myproject/b.ts Semantic diagnostics in builder refreshed for:: -/a/lib/lib.d.ts -/user/username/projects/myproject/a.ts -/user/username/projects/myproject/b.ts No shapes updated in the builder:: exitCode:: ExitStatus.undefined -Change:: Set to "error" +Change:: Disable verbatimModuleSyntax Input:: //// [/user/username/projects/myproject/tsconfig.json] { "compilerOptions": { - "importsNotUsedAsValues": "error" + "verbatimModuleSyntax": false } } @@ -176,28 +171,12 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:00:43 AM] File change detected. Starting incremental compilation... - -tsconfig.json:3:5 - error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. - Use 'verbatimModuleSyntax' instead. +[12:00:37 AM] File change detected. Starting incremental compilation... -3 "importsNotUsedAsValues": "error" -   ~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:00:50 AM] Found 1 error. Watching for file changes. +[12:00:38 AM] Found 0 errors. Watching for file changes. -//// [/user/username/projects/myproject/a.js] file written with same contents -//// [/user/username/projects/myproject/b.js] -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.f = void 0; -require("./a"); -function f(p) { return p; } -exports.f = f; - - Program root files: [ @@ -205,7 +184,7 @@ Program root files: [ "/user/username/projects/myproject/b.ts" ] Program options: { - "importsNotUsedAsValues": 2, + "verbatimModuleSyntax": false, "watch": true, "configFilePath": "/user/username/projects/myproject/tsconfig.json" } @@ -215,64 +194,7 @@ Program files:: /user/username/projects/myproject/a.ts /user/username/projects/myproject/b.ts -No cached semantic diagnostics in the builder:: - -No shapes updated in the builder:: - -exitCode:: ExitStatus.undefined - -Change:: Set to "preserve" - -Input:: -//// [/user/username/projects/myproject/tsconfig.json] -{ - "compilerOptions": { - "importsNotUsedAsValues": "preserve" - } -} - - -Timeout callback:: count: 1 -3: timerToUpdateProgram *new* - -Before running Timeout callback:: count: 1 -3: timerToUpdateProgram - -After running Timeout callback:: count: 0 -Output:: ->> Screen clear -[12:00:54 AM] File change detected. Starting incremental compilation... - -tsconfig.json:3:5 - error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. - Use 'verbatimModuleSyntax' instead. - -3 "importsNotUsedAsValues": "preserve" -   ~~~~~~~~~~~~~~~~~~~~~~~~ - -[12:01:01 AM] Found 1 error. Watching for file changes. - - - -//// [/user/username/projects/myproject/a.js] file written with same contents -//// [/user/username/projects/myproject/b.js] file written with same contents - - -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 -/user/username/projects/myproject/a.ts -/user/username/projects/myproject/b.ts - -No cached semantic diagnostics in the builder:: +Semantic diagnostics in builder refreshed for:: No shapes updated in the builder:: 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 e843e41e91741..4b682fb3b7c62 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 @@ -140,27 +140,10 @@ declare module "b" { //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./a.ts","./b.ts"],"dts":{"sections":[{"pos":0,"end":96,"kind":"text"}],"hash":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n"}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.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; }","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":1},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.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; }","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts","pendingEmit":1},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./a.ts", - "./b.ts" - ], - "dts": { - "sections": [ - { - "pos": 0, - "end": 96, - "kind": "text" - } - ], - "hash": "-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -196,26 +179,9 @@ declare module "b" { ] }, "version": "FakeTSVersion", - "size": 1094 + "size": 838 } -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-96) -declare module "a" { - export const x = 10; -} -declare module "b" { - export const y = 10; -} - -====================================================================== - Program root files: [ @@ -257,37 +223,10 @@ Change:: Emit all files Input:: //// [/user/username/projects/myproject/outFile.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./a.ts","./b.ts"],"js":{"sections":[{"pos":0,"end":398,"kind":"text"}],"hash":"8148223380-define(\"a\", [\"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(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 10;\n});\n"},"dts":{"sections":[{"pos":0,"end":96,"kind":"text"}],"hash":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n"}},"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.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; }","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./a.ts","./b.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; }","-10726455937-export const x = 10;","-13729955264-export const y = 10;"],"root":[2,3],"options":{"composite":true,"module":2,"noEmitOnError":true,"outFile":"./outFile.js"},"outSignature":"-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n","latestChangedDtsFile":"./outFile.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/outFile.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./a.ts", - "./b.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 398, - "kind": "text" - } - ], - "hash": "8148223380-define(\"a\", [\"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(\"b\", [\"require\", \"exports\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.y = void 0;\n exports.y = 10;\n});\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 96, - "kind": "text" - } - ], - "hash": "-4206946595-declare module \"a\" {\n export const x = 10;\n}\ndeclare module \"b\" {\n export const y = 10;\n}\n" - } - }, "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", @@ -319,40 +258,8 @@ Input:: "latestChangedDtsFile": "./outFile.d.ts" }, "version": "FakeTSVersion", - "size": 1583 -} - -//// [/user/username/projects/myproject/outFile.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/outFile.js ----------------------------------------------------------------------- -text: (0-398) -define("a", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("b", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 10; -}); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/outFile.d.ts ----------------------------------------------------------------------- -text: (0-96) -declare module "a" { - export const x = 10; + "size": 822 } -declare module "b" { - export const y = 10; -} - -====================================================================== //// [/user/username/projects/myproject/outFile.js] define("a", ["require", "exports"], function (require, exports) { 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 deleted file mode 100644 index b923ae4ad921f..0000000000000 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js +++ /dev/null @@ -1,403 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist -Before request -//// [/users/username/projects/project/a.ts] -export let x = 1 - -//// [/users/username/projects/project/tsconfig.json] -{ - "compilerOptions": { - "out": "/a/out.js" - } -} - -//// [/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; } - - -Info seq [hh:mm:ss:mss] request: - { - "command": "open", - "arguments": { - "file": "/users/username/projects/project/a.ts" - }, - "seq": 1, - "type": "request" - } -Info seq [hh:mm:ss:mss] Search path: /users/username/projects/project -Info seq [hh:mm:ss:mss] For info: /users/username/projects/project/a.ts :: Config file name: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } - } -Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { - "rootNames": [ - "/users/username/projects/project/a.ts" - ], - "options": { - "out": "/a/out.js", - "configFilePath": "/users/username/projects/project/tsconfig.json" - } -} -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - - - ../../../../a/lib/lib.d.ts - Default library for target 'es5' - a.ts - Matched by default include pattern '**/*' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 10 - }, - "text": "Option 'out' has been removed. Please remove it from your configuration.\n Use 'outFile' instead.", - "code": 5102, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ], - "triggerFile": "/users/username/projects/project/a.ts" - } - } -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/users/username/projects/node_modules/@types: *new* - {"pollingInterval":500} -/users/username/projects/project/node_modules/@types: *new* - {"pollingInterval":500} - -FsWatches:: -/a/lib/lib.d.ts: *new* - {} -/users/username/projects/project/tsconfig.json: *new* - {} - -FsWatchesRecursive:: -/users/username/projects/project: *new* - {} - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *new* - projectStateVersion: 1 - projectProgramVersion: 1 - -ScriptInfos:: -/a/lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) *new* - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* - -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/b.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/b.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Before running Timeout callback:: count: 2 -1: /users/username/projects/project/tsconfig.json -2: *ensureProjectForOpenFiles* -//// [/users/username/projects/project/b.ts] -export let y = 1 - - -Timeout callback:: count: 2 -1: /users/username/projects/project/tsconfig.json *new* -2: *ensureProjectForOpenFiles* *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 *changed* - projectProgramVersion: 1 - dirty: true *changed* - -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - /users/username/projects/project/b.ts Text-1 "export let y = 1" - - - ../../../../a/lib/lib.d.ts - Default library for target 'es5' - a.ts - Matched by default include pattern '**/*' - b.ts - Matched by default include pattern '**/*' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } - } -After running Timeout callback:: count: 0 - -PolledWatches:: -/users/username/projects/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/project/node_modules/@types: - {"pollingInterval":500} - -FsWatches:: -/a/lib/lib.d.ts: - {} -/users/username/projects/project/b.ts: *new* - {} -/users/username/projects/project/tsconfig.json: - {} - -FsWatchesRecursive:: -/users/username/projects/project: - {} - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 - projectProgramVersion: 2 *changed* - dirty: false *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json - -Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/username/projects/project/b.ts 1:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/project/b.ts 1:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Before running Timeout callback:: count: 2 -3: /users/username/projects/project/tsconfig.json -4: *ensureProjectForOpenFiles* -//// [/users/username/projects/project/b.ts] -export let x = 11 - - -Timeout callback:: count: 2 -3: /users/username/projects/project/tsconfig.json *new* -4: *ensureProjectForOpenFiles* *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 *changed* - projectProgramVersion: 2 - dirty: true *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *changed* - version: Text-1 - pendingReloadFromDisk: true *changed* - containingProjects: 1 - /users/username/projects/project/tsconfig.json - -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - /users/username/projects/project/b.ts Text-2 "export let x = 11" - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } - } -After running Timeout callback:: count: 0 - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 - projectProgramVersion: 2 - dirty: false *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *changed* - version: Text-2 *changed* - pendingReloadFromDisk: false *changed* - containingProjects: 1 - /users/username/projects/project/tsconfig.json 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 deleted file mode 100644 index 9f0ce84b90082..0000000000000 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ /dev/null @@ -1,408 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist -Before request -//// [/users/username/projects/project/a.ts] -export let x = 1 - -//// [/users/username/projects/project/tsconfig.json] -{ - "compilerOptions": { - "out": "/a/out.js" - } -} - -//// [/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; } - - -Info seq [hh:mm:ss:mss] request: - { - "command": "open", - "arguments": { - "file": "/users/username/projects/project/a.ts" - }, - "seq": 1, - "type": "request" - } -Info seq [hh:mm:ss:mss] Search path: /users/username/projects/project -Info seq [hh:mm:ss:mss] For info: /users/username/projects/project/a.ts :: Config file name: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } - } -Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { - "rootNames": [ - "/users/username/projects/project/a.ts" - ], - "options": { - "out": "/a/out.js", - "configFilePath": "/users/username/projects/project/tsconfig.json" - } -} -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - - - ../../../../a/lib/lib.d.ts - Default library for target 'es5' - a.ts - Matched by default include pattern '**/*' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 10 - }, - "text": "Option 'out' has been removed. Please remove it from your configuration.\n Use 'outFile' instead.", - "code": 5102, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ] - } - } -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/users/username/projects/node_modules/@types: *new* - {"pollingInterval":500} -/users/username/projects/project/node_modules/@types: *new* - {"pollingInterval":500} - -FsWatches:: -/a/lib/lib.d.ts: *new* - {} -/users/username/projects/project/tsconfig.json: *new* - {} - -FsWatchesRecursive:: -/users/username/projects/project: *new* - {} - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *new* - projectStateVersion: 1 - projectProgramVersion: 1 - -ScriptInfos:: -/a/lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) *new* - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* - -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/b.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/b.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Before running Timeout callback:: count: 2 -1: /users/username/projects/project/tsconfig.json -2: *ensureProjectForOpenFiles* -//// [/users/username/projects/project/b.ts] -export let y = 1 - - -Timeout callback:: count: 2 -1: /users/username/projects/project/tsconfig.json *new* -2: *ensureProjectForOpenFiles* *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 *changed* - projectProgramVersion: 1 - dirty: true *changed* - -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - /users/username/projects/project/b.ts Text-1 "export let y = 1" - - - ../../../../a/lib/lib.d.ts - Default library for target 'es5' - a.ts - Matched by default include pattern '**/*' - b.ts - Matched by default include pattern '**/*' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] got projects updated in background /users/username/projects/project/a.ts -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } - } -After running Timeout callback:: count: 0 - -PolledWatches:: -/users/username/projects/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/project/node_modules/@types: - {"pollingInterval":500} - -FsWatches:: -/a/lib/lib.d.ts: - {} -/users/username/projects/project/b.ts: *new* - {} -/users/username/projects/project/tsconfig.json: - {} - -FsWatchesRecursive:: -/users/username/projects/project: - {} - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 - projectProgramVersion: 2 *changed* - dirty: false *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json - -Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/username/projects/project/b.ts 1:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/project/b.ts 1:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Before running Timeout callback:: count: 2 -3: /users/username/projects/project/tsconfig.json -4: *ensureProjectForOpenFiles* -//// [/users/username/projects/project/b.ts] -export let x = 11 - - -Timeout callback:: count: 2 -3: /users/username/projects/project/tsconfig.json *new* -4: *ensureProjectForOpenFiles* *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 *changed* - projectProgramVersion: 2 - dirty: true *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *changed* - version: Text-1 - pendingReloadFromDisk: true *changed* - containingProjects: 1 - /users/username/projects/project/tsconfig.json - -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - /users/username/projects/project/b.ts Text-2 "export let x = 11" - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] got projects updated in background /users/username/projects/project/a.ts -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } - } -After running Timeout callback:: count: 0 - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 - projectProgramVersion: 2 - dirty: false *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *changed* - version: Text-2 *changed* - pendingReloadFromDisk: false *changed* - containingProjects: 1 - /users/username/projects/project/tsconfig.json 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 deleted file mode 100644 index dc9efe4abb447..0000000000000 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ /dev/null @@ -1,430 +0,0 @@ -currentDirectory:: / useCaseSensitiveFileNames: false -Info seq [hh:mm:ss:mss] Provided types map file "/typesMap.json" doesn't exist -Before request -//// [/users/username/projects/project/a.ts] -export let x = 1 - -//// [/users/username/projects/project/tsconfig.json] -{ - "compilerOptions": { - "out": "/a/out.js" - } -} - -//// [/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; } - - -Info seq [hh:mm:ss:mss] request: - { - "command": "open", - "arguments": { - "file": "/users/username/projects/project/a.ts" - }, - "seq": 1, - "type": "request" - } -Info seq [hh:mm:ss:mss] Search path: /users/username/projects/project -Info seq [hh:mm:ss:mss] For info: /users/username/projects/project/a.ts :: Config file name: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } - } -Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { - "rootNames": [ - "/users/username/projects/project/a.ts" - ], - "options": { - "out": "/a/out.js", - "configFilePath": "/users/username/projects/project/tsconfig.json" - } -} -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/project/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /users/username/projects/node_modules/@types 1 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Type roots -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - - - ../../../../a/lib/lib.d.ts - Default library for target 'es5' - a.ts - Matched by default include pattern '**/*' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 5 - }, - "end": { - "line": 3, - "offset": 10 - }, - "text": "Option 'out' has been removed. Please remove it from your configuration.\n Use 'outFile' instead.", - "code": 5102, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ] - } - } -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] response: - { - "responseRequired": false - } -After request - -PolledWatches:: -/users/username/projects/node_modules/@types: *new* - {"pollingInterval":500} -/users/username/projects/project/node_modules/@types: *new* - {"pollingInterval":500} - -FsWatches:: -/a/lib/lib.d.ts: *new* - {} -/users/username/projects/project/tsconfig.json: *new* - {} - -FsWatchesRecursive:: -/users/username/projects/project: *new* - {} - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *new* - projectStateVersion: 1 - projectProgramVersion: 1 - -ScriptInfos:: -/a/lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) *new* - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* - -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /users/username/projects/project/b.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Triggered with /users/username/projects/project/b.ts :: WatchInfo: /users/username/projects/project 1 undefined Config: /users/username/projects/project/tsconfig.json WatchType: Wild card directory -Before running Timeout callback:: count: 2 -1: /users/username/projects/project/tsconfig.json -2: *ensureProjectForOpenFiles* -//// [/users/username/projects/project/b.ts] -export let y = 1 - - -Timeout callback:: count: 2 -1: /users/username/projects/project/tsconfig.json *new* -2: *ensureProjectForOpenFiles* *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 *changed* - projectProgramVersion: 1 - dirty: true *changed* - -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - /users/username/projects/project/b.ts Text-1 "export let y = 1" - - - ../../../../a/lib/lib.d.ts - Default library for target 'es5' - a.ts - Matched by default include pattern '**/*' - b.ts - Matched by default include pattern '**/*' - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] got projects updated in background /users/username/projects/project/a.ts -Info seq [hh:mm:ss:mss] Queueing diagnostics update for /users/username/projects/project/a.ts -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } - } -After running Timeout callback:: count: 1 - -PolledWatches:: -/users/username/projects/node_modules/@types: - {"pollingInterval":500} -/users/username/projects/project/node_modules/@types: - {"pollingInterval":500} - -FsWatches:: -/a/lib/lib.d.ts: - {} -/users/username/projects/project/b.ts: *new* - {} -/users/username/projects/project/tsconfig.json: - {} - -FsWatchesRecursive:: -/users/username/projects/project: - {} - -Timeout callback:: count: 1 -3: checkOne *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 2 - projectProgramVersion: 2 *changed* - dirty: false *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *new* - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json - -Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /users/username/projects/project/b.ts 1:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] Scheduled: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /users/username/projects/project/b.ts 1:: WatchInfo: /users/username/projects/project/b.ts 500 undefined WatchType: Closed Script info -Before running Timeout callback:: count: 3 -3: checkOne -4: /users/username/projects/project/tsconfig.json -5: *ensureProjectForOpenFiles* -//// [/users/username/projects/project/b.ts] -export let x = 11 - - -Timeout callback:: count: 3 -3: checkOne -4: /users/username/projects/project/tsconfig.json *new* -5: *ensureProjectForOpenFiles* *new* - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 *changed* - projectProgramVersion: 2 - dirty: true *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *changed* - version: Text-1 - pendingReloadFromDisk: true *changed* - containingProjects: 1 - /users/username/projects/project/tsconfig.json - -Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /users/username/projects/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: false structureIsReused:: Completely Elapsed:: *ms -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/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; }" - /users/username/projects/project/a.ts SVC-1-0 "export let x = 1" - /users/username/projects/project/b.ts Text-2 "export let x = 11" - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } - } -Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* -Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] After ensureProjectForOpenFiles: -Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) - -Info seq [hh:mm:ss:mss] ----------------------------------------------- -Info seq [hh:mm:ss:mss] Open files: -Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts ProjectRootPath: undefined -Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json -Info seq [hh:mm:ss:mss] got projects updated in background /users/username/projects/project/a.ts -Info seq [hh:mm:ss:mss] Queueing diagnostics update for /users/username/projects/project/a.ts -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } - } -After running Timeout callback:: count: 1 - -Timeout callback:: count: 1 -6: checkOne *new* - -Immedidate callback:: count: 0 - -Projects:: -/users/username/projects/project/tsconfig.json (Configured) *changed* - projectStateVersion: 3 - projectProgramVersion: 2 - dirty: false *changed* - -ScriptInfos:: -/a/lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /users/username/projects/project/tsconfig.json -/users/username/projects/project/a.ts (Open) - version: SVC-1-0 - containingProjects: 1 - /users/username/projects/project/tsconfig.json *default* -/users/username/projects/project/b.ts *changed* - version: Text-2 *changed* - pendingReloadFromDisk: false *changed* - containingProjects: 1 - /users/username/projects/project/tsconfig.json 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 80d98e14712d1..f2888cb8f059b 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 @@ -89,36 +89,10 @@ declare namespace Hmi { //// [/user/username/projects/myproject/buttonClass/Source.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./Source.ts"],"js":{"sections":[{"pos":0,"end":251,"kind":"text"}],"hash":"10774636636-var Hmi;\n(function (Hmi) {\n var Button = /** @class */ (function () {\n function Button() {\n }\n Button.myStaticFunction = function () {\n };\n return Button;\n }());\n Hmi.Button = Button;\n})(Hmi || (Hmi = {}));\n"},"dts":{"sections":[{"pos":0,"end":92,"kind":"text"}],"hash":"6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n"}},"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./Source.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; }","-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}"],"root":[2],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"outSignature":"6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","./Source.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; }","-1678937917-module Hmi {\n export class Button {\n public static myStaticFunction() {\n }\n }\n}"],"root":[2],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"outSignature":"6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/buttonClass/Source.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./Source.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 251, - "kind": "text" - } - ], - "hash": "10774636636-var Hmi;\n(function (Hmi) {\n var Button = /** @class */ (function () {\n function Button() {\n }\n Button.myStaticFunction = function () {\n };\n return Button;\n }());\n Hmi.Button = Button;\n})(Hmi || (Hmi = {}));\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 92, - "kind": "text" - } - ], - "hash": "6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n" - } - }, "program": { "fileNames": [ "../../../../../a/lib/lib.d.ts", @@ -143,39 +117,9 @@ declare namespace Hmi { "latestChangedDtsFile": "./Source.d.ts" }, "version": "FakeTSVersion", - "size": 1413 -} - -//// [/user/username/projects/myproject/buttonClass/Source.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/buttonClass/Source.js ----------------------------------------------------------------------- -text: (0-251) -var Hmi; -(function (Hmi) { - var Button = /** @class */ (function () { - function Button() { - } - Button.myStaticFunction = function () { - }; - return Button; - }()); - Hmi.Button = Button; -})(Hmi || (Hmi = {})); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/buttonClass/Source.d.ts ----------------------------------------------------------------------- -text: (0-92) -declare namespace Hmi { - class Button { - static myStaticFunction(): void; - } + "size": 833 } -====================================================================== - //// [/user/username/projects/myproject/SiblingClass/Source.js] var Hmi; (function (Hmi) { @@ -199,36 +143,10 @@ declare namespace Hmi { //// [/user/username/projects/myproject/SiblingClass/Source.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./Source.ts"],"js":{"sections":[{"pos":0,"end":268,"kind":"text"}],"hash":"7833001416-var Hmi;\n(function (Hmi) {\n var Sibling = /** @class */ (function () {\n function Sibling() {\n }\n Sibling.prototype.mySiblingFunction = function () {\n };\n return Sibling;\n }());\n Hmi.Sibling = Sibling;\n})(Hmi || (Hmi = {}));\n"},"dts":{"sections":[{"pos":0,"end":87,"kind":"text"}],"hash":"-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n"}},"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../buttonClass/Source.d.ts","./Source.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; }","6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}"],"root":[3],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"outSignature":"-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts"},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../../a/lib/lib.d.ts","../buttonClass/Source.d.ts","./Source.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; }","6176297704-declare namespace Hmi {\n class Button {\n static myStaticFunction(): void;\n }\n}\n","-3370344921-module Hmi {\n export class Sibling {\n public mySiblingFunction() {\n }\n }\n}"],"root":[3],"options":{"composite":true,"module":0,"outFile":"./Source.js"},"outSignature":"-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n","latestChangedDtsFile":"./Source.d.ts"},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/SiblingClass/Source.tsbuildinfo.readable.baseline.txt] { - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./Source.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 268, - "kind": "text" - } - ], - "hash": "7833001416-var Hmi;\n(function (Hmi) {\n var Sibling = /** @class */ (function () {\n function Sibling() {\n }\n Sibling.prototype.mySiblingFunction = function () {\n };\n return Sibling;\n }());\n Hmi.Sibling = Sibling;\n})(Hmi || (Hmi = {}));\n" - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 87, - "kind": "text" - } - ], - "hash": "-2810380820-declare namespace Hmi {\n class Sibling {\n mySiblingFunction(): void;\n }\n}\n" - } - }, "program": { "fileNames": [ "../../../../../a/lib/lib.d.ts", @@ -255,39 +173,9 @@ declare namespace Hmi { "latestChangedDtsFile": "./Source.d.ts" }, "version": "FakeTSVersion", - "size": 1556 -} - -//// [/user/username/projects/myproject/SiblingClass/Source.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/myproject/SiblingClass/Source.js ----------------------------------------------------------------------- -text: (0-268) -var Hmi; -(function (Hmi) { - var Sibling = /** @class */ (function () { - function Sibling() { - } - Sibling.prototype.mySiblingFunction = function () { - }; - return Sibling; - }()); - Hmi.Sibling = Sibling; -})(Hmi || (Hmi = {})); - -====================================================================== -====================================================================== -File:: /user/username/projects/myproject/SiblingClass/Source.d.ts ----------------------------------------------------------------------- -text: (0-87) -declare namespace Hmi { - class Sibling { - mySiblingFunction(): void; - } + "size": 964 } -====================================================================== - Info seq [hh:mm:ss:mss] request: { 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 e438dc82b4b6d..18077655cdbde 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 @@ -36,7 +36,6 @@ namespace container { //// [/user/username/projects/container/exec/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "outFile": "../built/local/exec.js" }, "files": [ @@ -44,8 +43,7 @@ namespace container { ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -61,7 +59,6 @@ namespace container { //// [/user/username/projects/container/compositeExec/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "outFile": "../built/local/compositeExec.js", "composite": true, "declarationMap": true @@ -71,8 +68,7 @@ namespace container { ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -119,37 +115,10 @@ 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; }","-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"} +{"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] { - "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" - } - ], - "hash": "-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../../../../../a/lib/lib.d.ts", @@ -174,29 +143,71 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1401 + "size": 765 } -//// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/container/built/local/lib.js ----------------------------------------------------------------------- -text: (0-102) -var container; -(function (container) { - container.myConst = 30; -})(container || (container = {})); - -====================================================================== -====================================================================== -File:: /user/username/projects/container/built/local/lib.d.ts ----------------------------------------------------------------------- -text: (0-56) -declare namespace container { - const myConst = 30; -} +//// [/user/username/projects/container/built/local/exec.js] +var container; +(function (container) { + function getMyConst() { + return container.myConst; + } + container.getMyConst = getMyConst; +})(container || (container = {})); -====================================================================== + +//// [/user/username/projects/container/built/local/compositeExec.js] +var container; +(function (container) { + function getMyConst() { + return container.myConst; + } + container.getMyConst = getMyConst; +})(container || (container = {})); + + +//// [/user/username/projects/container/built/local/compositeExec.d.ts.map] +{"version":3,"file":"compositeExec.d.ts","sourceRoot":"","sources":["../../compositeExec/index.ts"],"names":[],"mappings":"AAAA,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ"} + +//// [/user/username/projects/container/built/local/compositeExec.d.ts] +declare namespace container { + function getMyConst(): number; +} +//# sourceMappingURL=compositeExec.d.ts.map + +//// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] +{"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":"6546330589-declare 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] +{ + "program": { + "fileNames": [ + "../../../../../../a/lib/lib.d.ts", + "./lib.d.ts", + "../../compositeexec/index.ts" + ], + "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": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" + }, + "root": [ + [ + 3, + "../../compositeexec/index.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true, + "outFile": "./compositeExec.js" + }, + "outSignature": "6546330589-declare namespace container {\n function getMyConst(): number;\n}\n", + "latestChangedDtsFile": "./compositeExec.d.ts" + }, + "version": "FakeTSVersion", + "size": 927 +} Info seq [hh:mm:ss:mss] request: @@ -227,7 +238,6 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/compositeExec "/user/username/projects/container/compositeExec/index.ts" ], "options": { - "ignoreDeprecations": "5.0", "outFile": "/user/username/projects/container/built/local/compositeExec.js", "composite": true, "declarationMap": true, @@ -236,8 +246,7 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/compositeExec "projectReferences": [ { "path": "/user/username/projects/container/lib", - "originalPath": "../lib", - "prepend": true + "originalPath": "../lib" } ] } @@ -311,7 +320,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "ignoreDeprecations": "", "outFile": "", "composite": true, "declarationMap": true @@ -341,22 +349,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/container/compositeExec/index.ts", "configFile": "/user/username/projects/container/compositeExec/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 12, - "offset": 5 - }, - "end": { - "line": 15, - "offset": 6 - }, - "text": "Option 'prepend' has been removed. Please remove it from your configuration.", - "code": 5102, - "category": "error", - "fileName": "/user/username/projects/container/compositeExec/tsconfig.json" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/container/compositeExec @@ -673,15 +666,13 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/exec/tsconfig "/user/username/projects/container/exec/index.ts" ], "options": { - "ignoreDeprecations": "5.0", "outFile": "/user/username/projects/container/built/local/exec.js", "configFilePath": "/user/username/projects/container/exec/tsconfig.json" }, "projectReferences": [ { "path": "/user/username/projects/container/lib", - "originalPath": "../lib", - "prepend": true + "originalPath": "../lib" } ] } @@ -753,22 +744,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/container/tsconfig.json", "configFile": "/user/username/projects/container/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 10, - "offset": 5 - }, - "end": { - "line": 13, - "offset": 6 - }, - "text": "Option 'prepend' has been removed. Please remove it from your configuration.", - "code": 5102, - "category": "error", - "fileName": "/user/username/projects/container/exec/tsconfig.json" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/container/exec/tsconfig.json @@ -839,7 +815,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "ignoreDeprecations": "", "outFile": "" }, "typeAcquisition": { 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 37eafd9d4bef9..5011c85fc8a50 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 @@ -36,7 +36,6 @@ namespace container { //// [/user/username/projects/container/exec/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "outFile": "../built/local/exec.js" }, "files": [ @@ -44,8 +43,7 @@ namespace container { ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -61,7 +59,6 @@ namespace container { //// [/user/username/projects/container/compositeExec/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "outFile": "../built/local/compositeExec.js", "composite": true, "declarationMap": true @@ -71,8 +68,7 @@ namespace container { ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -116,37 +112,10 @@ 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; }","-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"} +{"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] { - "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" - } - ], - "hash": "-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../../../../../a/lib/lib.d.ts", @@ -171,29 +140,71 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1401 + "size": 765 } -//// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/container/built/local/lib.js ----------------------------------------------------------------------- -text: (0-102) -var container; -(function (container) { - container.myConst = 30; -})(container || (container = {})); - -====================================================================== -====================================================================== -File:: /user/username/projects/container/built/local/lib.d.ts ----------------------------------------------------------------------- -text: (0-56) -declare namespace container { - const myConst = 30; -} +//// [/user/username/projects/container/built/local/exec.js] +var container; +(function (container) { + function getMyConst() { + return container.myConst; + } + container.getMyConst = getMyConst; +})(container || (container = {})); -====================================================================== + +//// [/user/username/projects/container/built/local/compositeExec.js] +var container; +(function (container) { + function getMyConst() { + return container.myConst; + } + container.getMyConst = getMyConst; +})(container || (container = {})); + + +//// [/user/username/projects/container/built/local/compositeExec.d.ts.map] +{"version":3,"file":"compositeExec.d.ts","sourceRoot":"","sources":["../../compositeExec/index.ts"],"names":[],"mappings":"AAAA,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ"} + +//// [/user/username/projects/container/built/local/compositeExec.d.ts] +declare namespace container { + function getMyConst(): number; +} +//# sourceMappingURL=compositeExec.d.ts.map + +//// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] +{"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":"6546330589-declare 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] +{ + "program": { + "fileNames": [ + "../../../../../../a/lib/lib.d.ts", + "./lib.d.ts", + "../../compositeexec/index.ts" + ], + "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": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" + }, + "root": [ + [ + 3, + "../../compositeexec/index.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true, + "outFile": "./compositeExec.js" + }, + "outSignature": "6546330589-declare namespace container {\n function getMyConst(): number;\n}\n", + "latestChangedDtsFile": "./compositeExec.d.ts" + }, + "version": "FakeTSVersion", + "size": 927 +} Info seq [hh:mm:ss:mss] request: @@ -224,7 +235,6 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/compositeExec "/user/username/projects/container/compositeExec/index.ts" ], "options": { - "ignoreDeprecations": "5.0", "outFile": "/user/username/projects/container/built/local/compositeExec.js", "composite": true, "declarationMap": true, @@ -233,8 +243,7 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/compositeExec "projectReferences": [ { "path": "/user/username/projects/container/lib", - "originalPath": "../lib", - "prepend": true + "originalPath": "../lib" } ] } @@ -308,7 +317,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "ignoreDeprecations": "", "outFile": "", "composite": true, "declarationMap": true @@ -338,22 +346,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/container/compositeExec/index.ts", "configFile": "/user/username/projects/container/compositeExec/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 12, - "offset": 5 - }, - "end": { - "line": 15, - "offset": 6 - }, - "text": "Option 'prepend' has been removed. Please remove it from your configuration.", - "code": 5102, - "category": "error", - "fileName": "/user/username/projects/container/compositeExec/tsconfig.json" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/container/compositeExec @@ -556,15 +549,13 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/exec/tsconfig "/user/username/projects/container/exec/index.ts" ], "options": { - "ignoreDeprecations": "5.0", "outFile": "/user/username/projects/container/built/local/exec.js", "configFilePath": "/user/username/projects/container/exec/tsconfig.json" }, "projectReferences": [ { "path": "/user/username/projects/container/lib", - "originalPath": "../lib", - "prepend": true + "originalPath": "../lib" } ] } @@ -636,22 +627,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/user/username/projects/container/tsconfig.json", "configFile": "/user/username/projects/container/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 10, - "offset": 5 - }, - "end": { - "line": 13, - "offset": 6 - }, - "text": "Option 'prepend' has been removed. Please remove it from your configuration.", - "code": 5102, - "category": "error", - "fileName": "/user/username/projects/container/exec/tsconfig.json" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/container/exec/tsconfig.json @@ -722,7 +698,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "ignoreDeprecations": "", "outFile": "" }, "typeAcquisition": { 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 6f5c981459c34..d9ab6ffcde09e 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 @@ -36,7 +36,6 @@ namespace container { //// [/user/username/projects/container/exec/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "outFile": "../built/local/exec.js" }, "files": [ @@ -44,8 +43,7 @@ namespace container { ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -61,7 +59,6 @@ namespace container { //// [/user/username/projects/container/compositeExec/tsconfig.json] { "compilerOptions": { - "ignoreDeprecations": "5.0", "outFile": "../built/local/compositeExec.js", "composite": true, "declarationMap": true @@ -71,8 +68,7 @@ namespace container { ], "references": [ { - "path": "../lib", - "prepend": true + "path": "../lib" } ] } @@ -116,37 +112,10 @@ 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; }","-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"} +{"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] { - "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" - } - ], - "hash": "-3233313694-declare namespace container {\n const myConst = 30;\n}\n//# sourceMappingURL=lib.d.ts.map", - "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\"}" - } - }, "program": { "fileNames": [ "../../../../../../a/lib/lib.d.ts", @@ -171,29 +140,71 @@ declare namespace container { "latestChangedDtsFile": "./lib.d.ts" }, "version": "FakeTSVersion", - "size": 1401 + "size": 765 } -//// [/user/username/projects/container/built/local/lib.tsbuildinfo.baseline.txt] -====================================================================== -File:: /user/username/projects/container/built/local/lib.js ----------------------------------------------------------------------- -text: (0-102) -var container; -(function (container) { - container.myConst = 30; -})(container || (container = {})); - -====================================================================== -====================================================================== -File:: /user/username/projects/container/built/local/lib.d.ts ----------------------------------------------------------------------- -text: (0-56) -declare namespace container { - const myConst = 30; -} +//// [/user/username/projects/container/built/local/exec.js] +var container; +(function (container) { + function getMyConst() { + return container.myConst; + } + container.getMyConst = getMyConst; +})(container || (container = {})); + -====================================================================== +//// [/user/username/projects/container/built/local/compositeExec.js] +var container; +(function (container) { + function getMyConst() { + return container.myConst; + } + container.getMyConst = getMyConst; +})(container || (container = {})); + + +//// [/user/username/projects/container/built/local/compositeExec.d.ts.map] +{"version":3,"file":"compositeExec.d.ts","sourceRoot":"","sources":["../../compositeExec/index.ts"],"names":[],"mappings":"AAAA,kBAAU,SAAS,CAAC;IAChB,SAAgB,UAAU,WAEzB;CACJ"} + +//// [/user/username/projects/container/built/local/compositeExec.d.ts] +declare namespace container { + function getMyConst(): number; +} +//# sourceMappingURL=compositeExec.d.ts.map + +//// [/user/username/projects/container/built/local/compositeExec.tsbuildinfo] +{"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":"6546330589-declare 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] +{ + "program": { + "fileNames": [ + "../../../../../../a/lib/lib.d.ts", + "./lib.d.ts", + "../../compositeexec/index.ts" + ], + "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": "-4062145979-namespace container {\n export function getMyConst() {\n return myConst;\n }\n}\n" + }, + "root": [ + [ + 3, + "../../compositeexec/index.ts" + ] + ], + "options": { + "composite": true, + "declarationMap": true, + "outFile": "./compositeExec.js" + }, + "outSignature": "6546330589-declare namespace container {\n function getMyConst(): number;\n}\n", + "latestChangedDtsFile": "./compositeExec.d.ts" + }, + "version": "FakeTSVersion", + "size": 927 +} Info seq [hh:mm:ss:mss] request: @@ -352,15 +363,13 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/exec/tsconfig "/user/username/projects/container/exec/index.ts" ], "options": { - "ignoreDeprecations": "5.0", "outFile": "/user/username/projects/container/built/local/exec.js", "configFilePath": "/user/username/projects/container/exec/tsconfig.json" }, "projectReferences": [ { "path": "/user/username/projects/container/lib", - "originalPath": "../lib", - "prepend": true + "originalPath": "../lib" } ] } @@ -421,7 +430,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "ignoreDeprecations": "", "outFile": "" }, "typeAcquisition": { @@ -458,7 +466,6 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/compositeExec "/user/username/projects/container/compositeExec/index.ts" ], "options": { - "ignoreDeprecations": "5.0", "outFile": "/user/username/projects/container/built/local/compositeExec.js", "composite": true, "declarationMap": true, @@ -467,8 +474,7 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/container/compositeExec "projectReferences": [ { "path": "/user/username/projects/container/lib", - "originalPath": "../lib", - "prepend": true + "originalPath": "../lib" } ] } @@ -529,7 +535,6 @@ Info seq [hh:mm:ss:mss] event: "deferredSize": 0 }, "compilerOptions": { - "ignoreDeprecations": "", "outFile": "", "composite": true, "declarationMap": true @@ -872,21 +877,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "response": [ - { - "start": { - "line": 10, - "offset": 5 - }, - "end": { - "line": 13, - "offset": 6 - }, - "text": "Option 'prepend' has been removed. Please remove it from your configuration.", - "code": 5102, - "category": "error" - } - ], + "response": [], "responseRequired": true } After request @@ -960,21 +951,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "response": [ - { - "start": { - "line": 12, - "offset": 5 - }, - "end": { - "line": 15, - "offset": 6 - }, - "text": "Option 'prepend' has been removed. Please remove it from your configuration.", - "code": 5102, - "category": "error" - } - ], + "response": [], "responseRequired": true } After request From c871a274f681813b7826d84c8232a2a2f0ceafc2 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Feb 2024 13:38:28 -0800 Subject: [PATCH 3/7] Fix the test case of verbatimModuleSyntax changes --- src/compiler/commandLineParser.ts | 3 ++ ...-emit-when-verbatimModuleSyntax-changes.js | 46 +++++++++++++++++-- 2 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index feee1493eb16a..2d2912b69a6ef 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -813,6 +813,9 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ { name: "verbatimModuleSyntax", type: "boolean", + affectsEmit: true, + affectsSemanticDiagnostics: true, + affectsBuildInfo: true, category: Diagnostics.Interop_Constraints, description: Diagnostics.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting, defaultValueDescription: false, diff --git a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-verbatimModuleSyntax-changes.js b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-verbatimModuleSyntax-changes.js index 60ae394320c9f..731c0902986d6 100644 --- a/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-verbatimModuleSyntax-changes.js +++ b/tests/baselines/reference/tscWatch/programUpdates/updates-errors-and-emit-when-verbatimModuleSyntax-changes.js @@ -124,8 +124,33 @@ Output:: >> Screen clear [12:00:32 AM] File change detected. Starting incremental compilation... -[12:00:33 AM] Found 0 errors. Watching for file changes. +a.ts:1:1 - error TS1287: A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled. +1 export class C {} +  ~~~~~~ + +b.ts:1:9 - error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled. + +1 import {C} from './a'; +   ~ + +b.ts:2:1 - error TS1287: A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled. + +2 export function f(p: C) { return p; } +  ~~~~~~ + +[12:00:39 AM] Found 3 errors. Watching for file changes. + + + +//// [/user/username/projects/myproject/a.js] file written with same contents +//// [/user/username/projects/myproject/b.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +var a_1 = require("./a"); +function f(p) { return p; } +exports.f = f; @@ -146,6 +171,9 @@ Program files:: /user/username/projects/myproject/b.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/a.ts +/user/username/projects/myproject/b.ts No shapes updated in the builder:: @@ -171,12 +199,21 @@ Before running Timeout callback:: count: 1 After running Timeout callback:: count: 0 Output:: >> Screen clear -[12:00:37 AM] File change detected. Starting incremental compilation... +[12:00:43 AM] File change detected. Starting incremental compilation... -[12:00:38 AM] Found 0 errors. Watching for file changes. +[12:00:50 AM] Found 0 errors. Watching for file changes. +//// [/user/username/projects/myproject/a.js] file written with same contents +//// [/user/username/projects/myproject/b.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.f = void 0; +function f(p) { return p; } +exports.f = f; + + Program root files: [ @@ -195,6 +232,9 @@ Program files:: /user/username/projects/myproject/b.ts Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/user/username/projects/myproject/a.ts +/user/username/projects/myproject/b.ts No shapes updated in the builder:: From 577543a7a31697a8445e2250af71776efffed976 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Feb 2024 13:39:35 -0800 Subject: [PATCH 4/7] Make "prepend" of projectReferences as internal only to check for deprecation error --- src/compiler/types.ts | 5 ++++- tests/baselines/reference/api/typescript.d.ts | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 2656262ae3e83..b4eeec38ea7a9 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -7008,7 +7008,10 @@ export interface ProjectReference { path: string; /** The path as the user originally wrote it */ originalPath?: string; - /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */ + /** + * Only present for deprecate notification + * @internal + */ prepend?: boolean; /** True if it is intended that this reference form a circularity */ circular?: boolean; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 349daa92751cb..d1481a5099db7 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -7432,8 +7432,6 @@ declare namespace ts { path: string; /** The path as the user originally wrote it */ originalPath?: string; - /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */ - prepend?: boolean; /** True if it is intended that this reference form a circularity */ circular?: boolean; } From 0e2a9b71887e6c8c3a78f2546c5df69e974d0f46 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Feb 2024 13:52:43 -0800 Subject: [PATCH 5/7] Fix the versions when logs are passed for baselining callbacks --- src/harness/tsserverLogger.ts | 14 ++++++++------ ...ured-projects-discover-from-bower_components.js | 2 +- .../typingsInstaller/configured-projects.js | 2 +- .../typingsInstaller/discover-from-bower.js | 2 +- ...ver-from-node_modules-empty-types-has-import.js | 2 +- .../typingsInstaller/discover-from-node_modules.js | 2 +- .../typingsInstaller/expired-cache-entry.js | 2 +- .../external-projects-autoDiscovery.js | 2 +- .../external-projects-no-type-acquisition.js | 4 ++-- .../external-projects-type-acquisition.js | 8 ++++---- .../tsserver/typingsInstaller/inferred-projects.js | 2 +- .../install-typings-for-unresolved-imports.js | 4 ++-- ...nvalidate-the-resolutions-with-trimmed-names.js | 2 +- .../typingsInstaller/invalidate-the-resolutions.js | 2 +- .../typingsInstaller/malformed-packagejson.js | 2 +- .../tsserver/typingsInstaller/multiple-projects.js | 4 ++-- ...ng-names-from-nonrelative-unresolved-imports.js | 2 +- .../progress-notification-for-error.js | 2 +- .../typingsInstaller/progress-notification.js | 2 +- ...resolutions-pointing-to-js-on-typing-install.js | 2 +- .../typingsInstaller/scoped-name-discovery.js | 2 +- .../should-handle-node-core-modules.js | 2 +- .../tsserver/typingsInstaller/telemetry-events.js | 2 +- .../throttle-delayed-run-install-requests.js | 12 ++++++------ .../throttle-delayed-typings-to-install.js | 10 +++++----- ...ed-run-install-requests-with-defer-refreshed.js | 12 ++++++------ ...tall-requests-with-defer-while-queuing-again.js | 12 ++++++------ ...le-scheduled-run-install-requests-with-defer.js | 12 ++++++------ ...-run-install-requests-without-reaching-limit.js | 12 ++++++------ 29 files changed, 71 insertions(+), 69 deletions(-) diff --git a/src/harness/tsserverLogger.ts b/src/harness/tsserverLogger.ts index 76cca7bd2b4c4..32042bdd404a8 100644 --- a/src/harness/tsserverLogger.ts +++ b/src/harness/tsserverLogger.ts @@ -54,11 +54,12 @@ export function createHasErrorMessageLogger(): Logger { logger.msg = (s, type) => ts.Debug.fail(`Error: ${s}, type: ${type}`); return logger; } -function handleLoggerGroup(logger: Logger, host: ts.server.ServerHost, logText: (s: string) => void, sanitizeLibs: true | undefined): Logger { +function handleLoggerGroup(logger: Logger, host: ts.server.ServerHost, sanitizeLibs: true | undefined): Logger { + const originaPush = logger.logs!.push; logger.hasLevel = ts.returnTrue; logger.loggingEnabled = ts.returnTrue; logger.host = host; - if (host) logText(`currentDirectory:: ${host.getCurrentDirectory()} useCaseSensitiveFileNames: ${host.useCaseSensitiveFileNames}`); + if (host) logger.logs!.push(`currentDirectory:: ${host.getCurrentDirectory()} useCaseSensitiveFileNames: ${host.useCaseSensitiveFileNames}`); let inGroup = false; let firstInGroup = false; @@ -69,10 +70,12 @@ function handleLoggerGroup(logger: Logger, host: ts.server.ServerHost, logText: logger.endGroup = () => inGroup = false; logger.info = s => msg(s, ts.server.Msg.Info, log); logger.log = log; + logger.logs!.push = log; return logger; - function log(s: string) { - logText((sanitizeLibs ? sanitizeLibFileText : ts.identity)(sanitizeLog(s))); + function log(...args: string[]) { + args.forEach(s => originaPush.call(logger.logs, (sanitizeLibs ? sanitizeLibFileText : ts.identity)(sanitizeLog(s)))); + return 0; } function msg(s: string, type = ts.server.Msg.Err, write: (s: string) => void) { @@ -103,7 +106,6 @@ export function createLoggerWritingToConsole(host: ts.server.ServerHost, sanitiz return handleLoggerGroup( logger, host, - s => console.log(s), sanitizeLibs, ) as LoggerWithInMemoryLogs; } @@ -153,5 +155,5 @@ export interface LoggerWithInMemoryLogs extends Logger { export function createLoggerWithInMemoryLogs(host: ts.server.ServerHost, sanitizeLibs?: true): LoggerWithInMemoryLogs { const logger = createHasErrorMessageLogger(); logger.logs = []; - return handleLoggerGroup(logger, host, s => logger.logs!.push(s), sanitizeLibs) as LoggerWithInMemoryLogs; + return handleLoggerGroup(logger, host, sanitizeLibs) as LoggerWithInMemoryLogs; } 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 57829a7d23e7a..f35ae73d39330 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 @@ -389,7 +389,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js index e2f88869c0bc4..c5128883f8bae 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js @@ -371,7 +371,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js index 26d65c2a4eab6..2f73a513b14cf 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js @@ -392,7 +392,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: 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 96bf12e127496..3cda2383088a3 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 @@ -438,7 +438,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: 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 4e358daf79d06..6ca78f91af0f1 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js @@ -456,7 +456,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js index dc89c025b1124..8506047dc1573 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js @@ -232,7 +232,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js index 763dad2a6ffcb..1888efa30e17b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js @@ -223,7 +223,7 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: 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 b93babb9c5648..0c88650feb654 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 @@ -301,8 +301,8 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/lodash@ts5.5", - "@types/react@ts5.5" + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" ] *new* Projects:: 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 b8913301d2476..6c0adc099266b 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js @@ -344,10 +344,10 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/moment@ts5.5", - "@types/commander@ts5.5", - "@types/express@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js index 18e4566726892..7d6e8d2ad89dd 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js @@ -196,7 +196,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: 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 4bce73ffdb015..400bed129194a 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 @@ -192,8 +192,8 @@ PolledWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/commander@ts5.5", - "@types/node@ts5.5" + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" ] *new* Projects:: 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 655dc76503e82..47d920c08d41a 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 @@ -196,7 +196,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/foo@ts5.5" + "@types/foo@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js index 852b27aa5ae76..40d3d5a1f7c27 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js @@ -192,7 +192,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/foo@ts5.5" + "@types/foo@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js index 147387c3ef044..7837fc8f7fc11 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js @@ -290,7 +290,7 @@ Before running PendingInstalls callback:: count: 1 PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/commander@ts5.5" + "@types/commander@tsFakeMajor.Minor" ] *new* TI:: Installation #1 with arguments:: [ diff --git a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js index f6b956250c34c..64de129b38145 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js @@ -365,7 +365,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5" + "@types/jquery@tsFakeMajor.Minor" ] *new* Projects:: @@ -986,7 +986,7 @@ FsWatchesRecursive *deleted*:: PendingInstalls callback:: count: 1 2: #2 with arguments:: [ - "@types/commander@ts5.5" + "@types/commander@tsFakeMajor.Minor" ] *new* Projects:: 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 e2a0fdd9acc87..55def2981811e 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 @@ -192,7 +192,7 @@ PolledWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/foo@ts5.5" + "@types/foo@tsFakeMajor.Minor" ] *new* Projects:: 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 b464b78d1ffbe..306175d985b92 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js @@ -186,7 +186,7 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/commander@ts5.5" + "@types/commander@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js index 4661746b4e915..e6cc57f24ee93 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js @@ -195,7 +195,7 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/commander@ts5.5" + "@types/commander@tsFakeMajor.Minor" ] *new* Projects:: 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 7b8a5d2aed381..0a058c251a1f3 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 @@ -243,7 +243,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/commander@ts5.5" + "@types/commander@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js index 68ebd414592b0..4aa7506f19c92 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js @@ -451,7 +451,7 @@ FsWatchesRecursive:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/zkat__cacache@ts5.5" + "@types/zkat__cacache@tsFakeMajor.Minor" ] *new* Projects:: 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 306fc071db13b..072a5ebdd9f7a 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 @@ -199,7 +199,7 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/node@ts5.5" + "@types/node@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js index 9731743fff354..a431077faabf3 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js @@ -186,7 +186,7 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/commander@ts5.5" + "@types/commander@tsFakeMajor.Minor" ] *new* Projects:: 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 fc5a756017c4a..a5e0f1b2bf3f8 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 @@ -345,10 +345,10 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/cordova@ts5.5", - "@types/lodash@ts5.5", - "@types/commander@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" ] *new* Projects:: @@ -666,8 +666,8 @@ Timeout callback:: count: 1 PendingInstalls callback:: count: 1 2: #2 with arguments:: [ - "@types/grunt@ts5.5", - "@types/gulp@ts5.5" + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" ] *new* Projects:: 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 dbffdf99ff644..cefd50442d0d6 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 @@ -350,11 +350,11 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/moment@ts5.5", - "@types/lodash@ts5.5", - "@types/commander@ts5.5", - "@types/express@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" ] *new* Projects:: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js index 6ad6be5f73c6a..71bbe0039cf12 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-refreshed.js @@ -634,9 +634,9 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/cordova@ts5.5", - "@types/commander@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 @@ -944,9 +944,9 @@ After running Timeout callback:: count: 1 PendingInstalls callback:: count: 1 2: #2 with arguments:: [ - "@types/grunt@ts5.5", - "@types/gulp@ts5.5", - "@types/lodash@ts5.5" + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js index 0abfc434719b5..999377eb3c1a8 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer-while-queuing-again.js @@ -690,8 +690,8 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/commander@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 @@ -970,8 +970,8 @@ After running Timeout callback:: count: 1 PendingInstalls callback:: count: 1 2: #2 with arguments:: [ - "@types/grunt@ts5.5", - "@types/gulp@ts5.5" + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 @@ -1266,8 +1266,8 @@ After running Timeout callback:: count: 2 PendingInstalls callback:: count: 1 3: #3 with arguments:: [ - "@types/cordova@ts5.5", - "@types/lodash@ts5.5" + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js index ab17463d1a8eb..148b128fd0b33 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-with-defer.js @@ -562,10 +562,10 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/cordova@ts5.5", - "@types/lodash@ts5.5", - "@types/commander@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 @@ -869,8 +869,8 @@ After running Timeout callback:: count: 1 PendingInstalls callback:: count: 1 2: #2 with arguments:: [ - "@types/grunt@ts5.5", - "@types/gulp@ts5.5" + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 diff --git a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js index bb5a8ed6be970..8504c4f2258fe 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/throttle-scheduled-run-install-requests-without-reaching-limit.js @@ -428,10 +428,10 @@ FsWatches:: PendingInstalls callback:: count: 1 1: #1 with arguments:: [ - "@types/jquery@ts5.5", - "@types/cordova@ts5.5", - "@types/lodash@ts5.5", - "@types/commander@ts5.5" + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 @@ -869,8 +869,8 @@ After running Timeout callback:: count: 1 PendingInstalls callback:: count: 1 2: #2 with arguments:: [ - "@types/grunt@ts5.5", - "@types/gulp@ts5.5" + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" ] *new* Before running PendingInstalls callback:: count: 1 From 92e9bc36f1d3fc8f4aa5ebbe49d3a39f0e035f70 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 21 Feb 2024 14:07:57 -0800 Subject: [PATCH 6/7] Fix unintentional removal of baseline --- .../unittests/tsbuild/declarationEmit.ts | 58 ++--- ...-dts-generation-errors-with-incremental.js | 219 ++++++++++++++++++ 2 files changed, 248 insertions(+), 29 deletions(-) create mode 100644 tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js diff --git a/src/testRunner/unittests/tsbuild/declarationEmit.ts b/src/testRunner/unittests/tsbuild/declarationEmit.ts index 99b71e36c7a03..cf32ab8d62cd1 100644 --- a/src/testRunner/unittests/tsbuild/declarationEmit.ts +++ b/src/testRunner/unittests/tsbuild/declarationEmit.ts @@ -135,44 +135,44 @@ export function fn4() { }), commandLineArgs: ["--b", "/src/packages/pkg2/tsconfig.json", "--verbose"], }); -}); -verifyTsc({ - scenario: "declarationEmit", - subScenario: "reports dts generation errors with incremental", - commandLineArgs: ["-b", `/src/project`, "--explainFiles", "--listEmittedFiles", "--v"], - fs: () => - loadProjectFromFiles({ - "/src/project/tsconfig.json": jsonToReadableText({ - compilerOptions: { - module: "NodeNext", - moduleResolution: "NodeNext", - incremental: true, - declaration: true, - skipLibCheck: true, - skipDefaultLibCheck: true, - }, - }), - "/src/project/index.ts": dedent` + verifyTsc({ + scenario: "declarationEmit", + subScenario: "reports dts generation errors with incremental", + commandLineArgs: ["-b", `/src/project`, "--explainFiles", "--listEmittedFiles", "--v"], + fs: () => + loadProjectFromFiles({ + "/src/project/tsconfig.json": jsonToReadableText({ + compilerOptions: { + module: "NodeNext", + moduleResolution: "NodeNext", + incremental: true, + declaration: true, + skipLibCheck: true, + skipDefaultLibCheck: true, + }, + }), + "/src/project/index.ts": dedent` import ky from 'ky'; export const api = ky.extend({}); `, - "/src/project/package.json": jsonToReadableText({ - type: "module", - }), - "/src/project/node_modules/ky/distribution/index.d.ts": dedent` + "/src/project/package.json": jsonToReadableText({ + type: "module", + }), + "/src/project/node_modules/ky/distribution/index.d.ts": dedent` type KyInstance = { extend(options: Record): KyInstance; } declare const ky: KyInstance; export default ky; `, - "/src/project/node_modules/ky/package.json": jsonToReadableText({ - name: "ky", - type: "module", - main: "./distribution/index.js", + "/src/project/node_modules/ky/package.json": jsonToReadableText({ + name: "ky", + type: "module", + main: "./distribution/index.js", + }), + "/lib/lib.esnext.full.d.ts": libContent, }), - "/lib/lib.esnext.full.d.ts": libContent, - }), - edits: noChangeOnlyRuns, + edits: noChangeOnlyRuns, + }); }); diff --git a/tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js b/tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js new file mode 100644 index 0000000000000..c78f440d2782c --- /dev/null +++ b/tests/baselines/reference/tsbuild/declarationEmit/reports-dts-generation-errors-with-incremental.js @@ -0,0 +1,219 @@ +currentDirectory:: / useCaseSensitiveFileNames: false +Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/lib/lib.esnext.full.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/project/index.ts] +import ky from 'ky'; +export const api = ky.extend({}); + + +//// [/src/project/node_modules/ky/distribution/index.d.ts] +type KyInstance = { + extend(options: Record): KyInstance; + } + declare const ky: KyInstance; + export default ky; + + +//// [/src/project/node_modules/ky/package.json] +{ + "name": "ky", + "type": "module", + "main": "./distribution/index.js" +} + +//// [/src/project/package.json] +{ + "type": "module" +} + +//// [/src/project/tsconfig.json] +{ + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "incremental": true, + "declaration": true, + "skipLibCheck": true, + "skipDefaultLibCheck": true + } +} + + + +Output:: +/lib/tsc -b /src/project --explainFiles --listEmittedFiles --v +[12:00:16 AM] Projects in this build: + * src/project/tsconfig.json + +[12:00:17 AM] Project 'src/project/tsconfig.json' is out of date because output file 'src/project/tsconfig.tsbuildinfo' does not exist + +[12:00:18 AM] Building project '/src/project/tsconfig.json'... + +src/project/index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/src/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +TSFILE: /src/project/tsconfig.tsbuildinfo +lib/lib.esnext.full.d.ts + Default library for target 'esnext' +src/project/node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'src/project/index.ts' + File is ECMAScript module because 'src/project/node_modules/ky/package.json' has field "type" with value "module" +src/project/index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'src/project/package.json' has field "type" with value "module" + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.esnext.full.d.ts","./node_modules/ky/distribution/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,"impliedFormat":1},{"version":"20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n","impliedFormat":99},{"version":"-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n","impliedFormat":99}],"root":[3],"options":{"declaration":true,"module":199,"skipDefaultLibCheck":true,"skipLibCheck":true},"fileIdsList":[[2]],"referencedMap":[[3,1]],"exportedModulesMap":[[3,1]],"semanticDiagnosticsPerFile":[1,3,2],"affectedFilesPendingEmit":[3]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.esnext.full.d.ts", + "./node_modules/ky/distribution/index.d.ts", + "./index.ts" + ], + "fileNamesList": [ + [ + "./node_modules/ky/distribution/index.d.ts" + ] + ], + "fileInfos": { + "../../lib/lib.esnext.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, + "impliedFormat": 1 + }, + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\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, + "impliedFormat": "commonjs" + }, + "./node_modules/ky/distribution/index.d.ts": { + "original": { + "version": "20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n", + "impliedFormat": 99 + }, + "version": "20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n", + "signature": "20726041391-type KyInstance = {\n extend(options: Record): KyInstance;\n }\n declare const ky: KyInstance;\n export default ky;\n", + "impliedFormat": "esnext" + }, + "./index.ts": { + "original": { + "version": "-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n", + "impliedFormat": 99 + }, + "version": "-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n", + "signature": "-383421929-import ky from 'ky';\nexport const api = ky.extend({});\n", + "impliedFormat": "esnext" + } + }, + "root": [ + [ + 3, + "./index.ts" + ] + ], + "options": { + "declaration": true, + "module": 199, + "skipDefaultLibCheck": true, + "skipLibCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./node_modules/ky/distribution/index.d.ts" + ] + }, + "exportedModulesMap": { + "./index.ts": [ + "./node_modules/ky/distribution/index.d.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.esnext.full.d.ts", + "./index.ts", + "./node_modules/ky/distribution/index.d.ts" + ], + "affectedFilesPendingEmit": [ + [ + "./index.ts", + "Js | Dts" + ] + ] + }, + "version": "FakeTSVersion", + "size": 1182 +} + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc -b /src/project --explainFiles --listEmittedFiles --v +[12:00:22 AM] Projects in this build: + * src/project/tsconfig.json + +[12:00:23 AM] Project 'src/project/tsconfig.json' is out of date because buildinfo file 'src/project/tsconfig.tsbuildinfo' indicates that some of the changes were not emitted + +[12:00:24 AM] Building project '/src/project/tsconfig.json'... + +src/project/index.ts:2:14 - error TS4023: Exported variable 'api' has or is using name 'KyInstance' from external module "/src/project/node_modules/ky/distribution/index" but cannot be named. + +2 export const api = ky.extend({}); +   ~~~ + +lib/lib.esnext.full.d.ts + Default library for target 'esnext' +src/project/node_modules/ky/distribution/index.d.ts + Imported via 'ky' from file 'src/project/index.ts' + File is ECMAScript module because 'src/project/node_modules/ky/package.json' has field "type" with value "module" +src/project/index.ts + Matched by default include pattern '**/*' + File is ECMAScript module because 'src/project/package.json' has field "type" with value "module" + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + + From 58ee1e57d25a4e0182b082e2d681fe1dad37c5e2 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 26 Feb 2024 12:13:02 -0800 Subject: [PATCH 7/7] Fix API --- src/compiler/types.ts | 11 +- tests/baselines/reference/api/typescript.d.ts | 117 +++++++++--------- 2 files changed, 58 insertions(+), 70 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index b4eeec38ea7a9..b782c5f134af1 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -389,12 +389,6 @@ export const enum SyntaxKind { // Enum EnumMember, - // Unparsed - /** @deprecated */ UnparsedPrologue, - /** @deprecated */ UnparsedPrepend, - /** @deprecated */ UnparsedText, - /** @deprecated */ UnparsedInternalText, - /** @deprecated */ UnparsedSyntheticReference, // Top-level nodes SourceFile, @@ -7008,10 +7002,7 @@ export interface ProjectReference { path: string; /** The path as the user originally wrote it */ originalPath?: string; - /** - * Only present for deprecate notification - * @internal - */ + /** @deprecated */ prepend?: boolean; /** True if it is intended that this reference form a circularity */ circular?: boolean; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index d1481a5099db7..f47a8e07c2326 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -4478,63 +4478,58 @@ declare namespace ts { ShorthandPropertyAssignment = 304, SpreadAssignment = 305, EnumMember = 306, - /** @deprecated */ UnparsedPrologue = 307, - /** @deprecated */ UnparsedPrepend = 308, - /** @deprecated */ UnparsedText = 309, - /** @deprecated */ UnparsedInternalText = 310, - /** @deprecated */ UnparsedSyntheticReference = 311, - SourceFile = 312, - Bundle = 313, - JSDocTypeExpression = 314, - JSDocNameReference = 315, - JSDocMemberName = 316, - JSDocAllType = 317, - JSDocUnknownType = 318, - JSDocNullableType = 319, - JSDocNonNullableType = 320, - JSDocOptionalType = 321, - JSDocFunctionType = 322, - JSDocVariadicType = 323, - JSDocNamepathType = 324, - JSDoc = 325, + SourceFile = 307, + Bundle = 308, + JSDocTypeExpression = 309, + JSDocNameReference = 310, + JSDocMemberName = 311, + JSDocAllType = 312, + JSDocUnknownType = 313, + JSDocNullableType = 314, + JSDocNonNullableType = 315, + JSDocOptionalType = 316, + JSDocFunctionType = 317, + JSDocVariadicType = 318, + JSDocNamepathType = 319, + JSDoc = 320, /** @deprecated Use SyntaxKind.JSDoc */ - JSDocComment = 325, - JSDocText = 326, - JSDocTypeLiteral = 327, - JSDocSignature = 328, - JSDocLink = 329, - JSDocLinkCode = 330, - JSDocLinkPlain = 331, - JSDocTag = 332, - JSDocAugmentsTag = 333, - JSDocImplementsTag = 334, - JSDocAuthorTag = 335, - JSDocDeprecatedTag = 336, - JSDocClassTag = 337, - JSDocPublicTag = 338, - JSDocPrivateTag = 339, - JSDocProtectedTag = 340, - JSDocReadonlyTag = 341, - JSDocOverrideTag = 342, - JSDocCallbackTag = 343, - JSDocOverloadTag = 344, - JSDocEnumTag = 345, - JSDocParameterTag = 346, - JSDocReturnTag = 347, - JSDocThisTag = 348, - JSDocTypeTag = 349, - JSDocTemplateTag = 350, - JSDocTypedefTag = 351, - JSDocSeeTag = 352, - JSDocPropertyTag = 353, - JSDocThrowsTag = 354, - JSDocSatisfiesTag = 355, - SyntaxList = 356, - NotEmittedStatement = 357, - PartiallyEmittedExpression = 358, - CommaListExpression = 359, - SyntheticReferenceExpression = 360, - Count = 361, + JSDocComment = 320, + JSDocText = 321, + JSDocTypeLiteral = 322, + JSDocSignature = 323, + JSDocLink = 324, + JSDocLinkCode = 325, + JSDocLinkPlain = 326, + JSDocTag = 327, + JSDocAugmentsTag = 328, + JSDocImplementsTag = 329, + JSDocAuthorTag = 330, + JSDocDeprecatedTag = 331, + JSDocClassTag = 332, + JSDocPublicTag = 333, + JSDocPrivateTag = 334, + JSDocProtectedTag = 335, + JSDocReadonlyTag = 336, + JSDocOverrideTag = 337, + JSDocCallbackTag = 338, + JSDocOverloadTag = 339, + JSDocEnumTag = 340, + JSDocParameterTag = 341, + JSDocReturnTag = 342, + JSDocThisTag = 343, + JSDocTypeTag = 344, + JSDocTemplateTag = 345, + JSDocTypedefTag = 346, + JSDocSeeTag = 347, + JSDocPropertyTag = 348, + JSDocThrowsTag = 349, + JSDocSatisfiesTag = 350, + SyntaxList = 351, + NotEmittedStatement = 352, + PartiallyEmittedExpression = 353, + CommaListExpression = 354, + SyntheticReferenceExpression = 355, + Count = 356, FirstAssignment = 64, LastAssignment = 79, FirstCompoundAssignment = 65, @@ -4562,10 +4557,10 @@ declare namespace ts { FirstStatement = 243, LastStatement = 259, FirstNode = 166, - FirstJSDocNode = 314, - LastJSDocNode = 355, - FirstJSDocTagNode = 332, - LastJSDocTagNode = 355, + FirstJSDocNode = 309, + LastJSDocNode = 350, + FirstJSDocTagNode = 327, + LastJSDocTagNode = 350, } type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia; type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral; @@ -7432,6 +7427,8 @@ declare namespace ts { path: string; /** The path as the user originally wrote it */ originalPath?: string; + /** @deprecated */ + prepend?: boolean; /** True if it is intended that this reference form a circularity */ circular?: boolean; }